Skip to content

Commit

Permalink
Merge pull request #762 from Mingun/organize-tests
Browse files Browse the repository at this point in the history
Organize tests
  • Loading branch information
Mingun authored Jun 21, 2024
2 parents 0657aa0 + 486e64e commit a85cab7
Show file tree
Hide file tree
Showing 30 changed files with 2,051 additions and 2,226 deletions.
5 changes: 4 additions & 1 deletion src/escape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1854,7 +1854,10 @@ fn test_unescape() {
assert_eq!(unchanged, Cow::Borrowed("test"));
assert!(matches!(unchanged, Cow::Borrowed(_)));

assert_eq!(unescape("&lt;test&gt;").unwrap(), "<test>");
assert_eq!(
unescape("&lt;&amp;test&apos;&quot;&gt;").unwrap(),
"<&test'\">"
);
assert_eq!(unescape("&#x30;").unwrap(), "0");
assert_eq!(unescape("&#48;").unwrap(), "0");
assert!(unescape("&foo;").is_err());
Expand Down
Loading

0 comments on commit a85cab7

Please sign in to comment.