From 80b44c8ec956eb808b54fa2e0252db8600c42658 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 30 Sep 2018 21:01:56 +0200 Subject: action_parses_map_with_less_than_escape(): Add `>` to end of test string Add a '>' closing bracket to the end of the test string to make sure that the '<' gets escaped even with a '>' following it. --- src/parser.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/parser.rs b/src/parser.rs index 0389cf5..a7a565b 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -754,7 +754,7 @@ mod tests { #[test] fn action_parses_map_with_less_than_escape() { - let text = "type\\')), + None, + ), ]); let result = action_map().easy_parse(text).map(|t| t.0); -- cgit v1.2.3