Skip to content

Commit f93e5b2

Browse files
committed
Add test for empty dict
1 parent 90f1a4c commit f93e5b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/Compiler/QbScript/Parser/Tests.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ litTests =
8383
it "can parse a passthrough" $
8484
parse lit "" "<...>" `shouldParse` LitPassthrough
8585
-- TODO: maybe quickcheck these?
86+
it "parses empty braces as a dictionary" $
87+
parse lit "" "{ }" `shouldParse` LitDict (Dict [])
8688
it "can parse a dictionary with a single kv member" $
8789
parse lit "" "{ $deadbeef: x }" `shouldParse`
8890
LitDict (Dict [(Just $ QbCrc 0xDEADBEEF, eLitKey "x")])

0 commit comments

Comments
 (0)