Artifact 80b8bebd720871605292e5260b9be68616ba8b549e21936d4ec1da9a43c93e47:
- File src/tests.rs — part of check-in [6ce625a569] at 2026-01-12 14:46:42 on branch trunk — fix typo, fix comments, drop unneeded constant (user: arcade, size: 468) [annotate] [blame] [check-ins using] [more...]
use crate::utils::validate; use stacked_errors::{ Result, StackableErr, }; #[test] fn check_valid () -> Result<()> { let html = "<p>Some <b>valid</b> HTML</p>"; let res = validate(html).stack()?; assert_eq!(res, html); Ok(()) } #[test] #[should_panic = "Found special tag while closing generic tag"] fn check_invalid () { let html = "<p>Some <b>valid</b> HTML</p></code><a href='http://somewere.com'>Link injection!</a>"; let _ = validate(html).unwrap(); }