diff options
author | Alex Crichton <alex@alexcrichton.com> | 2015-01-15 17:37:13 -0800 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2015-01-15 17:37:13 -0800 |
commit | 46a70861d5c05fa59ec95bdc08775159162dcf64 (patch) | |
tree | 3c86b5ba55f8f018af40a8dddea62944cd1b342b /src | |
parent | 0285af245aaf649c0528575ff7bd03838b31c743 (diff) | |
download | milf-rs-46a70861d5c05fa59ec95bdc08775159162dcf64.tar.gz milf-rs-46a70861d5c05fa59ec95bdc08775159162dcf64.zip |
Add some tests from the spec
Diffstat (limited to 'src')
-rw-r--r-- | src/parser.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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] |