diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/parser.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/parser.rs b/src/parser.rs index 8fa2d77..68e12d5 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -1206,6 +1206,14 @@ trimmed in raw strings. } #[test] + fn empty_table() { + let mut p = Parser::new(r#" +[foo]"#); + let table = Table(p.parse().unwrap()); + table.lookup("foo").unwrap().as_table().unwrap(); + } + + #[test] fn fruit() { let mut p = Parser::new(r#" [[fruit]] |