Annotation For src/tests.rs
Logged in as anonymous

Origin for each line in src/tests.rs from check-in c996f5c871:

c996f5c871 2026-01-12        arcade: use crate::utils::validate;
c996f5c871 2026-01-12        arcade: 
c996f5c871 2026-01-12        arcade: use stacked_errors::{
c996f5c871 2026-01-12        arcade: 	Result,
c996f5c871 2026-01-12        arcade: 	StackableErr,
c996f5c871 2026-01-12        arcade: };
c996f5c871 2026-01-12        arcade: 
c996f5c871 2026-01-12        arcade: #[test]
c996f5c871 2026-01-12        arcade: fn check_valid () -> Result<()> {
c996f5c871 2026-01-12        arcade: 	let html = "<p>Some <b>valid</b> HTML</p>";
c996f5c871 2026-01-12        arcade: 	let res = validate(html).stack()?;
c996f5c871 2026-01-12        arcade: 	assert_eq!(res, html);
c996f5c871 2026-01-12        arcade: 	Ok(())
c996f5c871 2026-01-12        arcade: }
c996f5c871 2026-01-12        arcade: 
c996f5c871 2026-01-12        arcade: #[test]
c996f5c871 2026-01-12        arcade: #[should_panic = "Found special tag while closing generic tag"]
c996f5c871 2026-01-12        arcade: fn check_invalid () -> () {
c996f5c871 2026-01-12        arcade: 	let html = "<p>Some <b>valid</b> HTML</p></code><a href='http://somewere.com'>Link injection!</a>";
c996f5c871 2026-01-12        arcade: 	let _ = validate(html).unwrap();
c996f5c871 2026-01-12        arcade: 	()
c996f5c871 2026-01-12        arcade: }