Skip to content

Commit dcbcf15

Browse files
author
Poscat
committed
Unit tests for TaggedFlatObject
1 parent a5c61cb commit dcbcf15

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/UnitTests/NullaryConstructors.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ nullaryConstructors =
3131
, dec "[\"c1\",[]]" @=? thNullaryToJSON2ElemArray C1
3232
, dec "{\"tag\":\"c1\"}" @=? thNullaryToJSONTaggedObject C1
3333
, dec "{\"tag\":\"c1\"}" @=? gNullaryToJSONTaggedObject C1
34+
, dec "{\"tag\":\"c1\"}" @=? thNullaryToJSONTaggedFlatObject C1
35+
, dec "{\"tag\":\"c1\"}" @=? gNullaryToJSONTaggedFlatObject C1
3436

3537
, decE "\"C1\"" @=? enc (gNullaryToEncodingString C1)
3638
, decE "\"C1\"" @=? enc (thNullaryToEncodingString C1)
@@ -40,6 +42,8 @@ nullaryConstructors =
4042
, decE "{\"c1\":[]}" @=? enc (gNullaryToEncodingObjectWithSingleField C1)
4143
, decE "{\"tag\":\"c1\"}" @=? enc (thNullaryToEncodingTaggedObject C1)
4244
, decE "{\"tag\":\"c1\"}" @=? enc (gNullaryToEncodingTaggedObject C1)
45+
, decE "{\"tag\":\"c1\"}" @=? enc (thNullaryToEncodingTaggedFlatObject C1)
46+
, decE "{\"tag\":\"c1\"}" @=? enc (gNullaryToEncodingTaggedFlatObject C1)
4347

4448
, ISuccess C1 @=? parse thNullaryParseJSONTaggedObject (dec "{\"tag\":\"c1\"}")
4549
, ISuccess C1 @=? parse gNullaryParseJSONTaggedObject (dec "{\"tag\":\"c1\"}")

0 commit comments

Comments
 (0)