Add some tests from the spec

This commit is contained in:
Alex Crichton 2015-01-15 17:37:13 -08:00
parent 0285af245a
commit 46a70861d5

View file

@ -1089,6 +1089,8 @@ trimmed in raw strings.
\"!\" = 3 \"!\" = 3
\"a^b\" = 3 \"a^b\" = 3
\"\\\"\" = 3 \"\\\"\" = 3
\"character encoding\" = \"value\"
\"ʎǝʞ\" = \"value\"
"); ");
let table = Table(p.parse().unwrap()); let table = Table(p.parse().unwrap());
assert!(table.lookup("foo").is_some()); assert!(table.lookup("foo").is_some());
@ -1100,6 +1102,8 @@ trimmed in raw strings.
assert!(table.lookup("a").is_some()); assert!(table.lookup("a").is_some());
assert!(table.lookup("!").is_some()); assert!(table.lookup("!").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] #[test]