From 46a70861d5c05fa59ec95bdc08775159162dcf64 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 15 Jan 2015 17:37:13 -0800 Subject: [PATCH] Add some tests from the spec --- src/parser.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/parser.rs b/src/parser.rs index 9e5bc15..8bb7bf1 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -1089,6 +1089,8 @@ trimmed in raw strings. \"!\" = 3 \"a^b\" = 3 \"\\\"\" = 3 + \"character encoding\" = \"value\" + \"ʎǝʞ\" = \"value\" "); let table = Table(p.parse().unwrap()); assert!(table.lookup("foo").is_some()); @@ -1100,6 +1102,8 @@ trimmed in raw strings. assert!(table.lookup("a").is_some()); assert!(table.lookup("!").is_some()); assert!(table.lookup("\"").is_some()); + assert!(table.lookup("character encoding").is_some()); + assert!(table.lookup("ʎǝʞ").is_some()); } #[test]