@@ -23,11 +23,13 @@ genericTests =
23
23
testProperty " string" (isString . gNullaryToJSONString)
24
24
, testProperty " 2ElemArray" (is2ElemArray . gNullaryToJSON2ElemArray)
25
25
, testProperty " TaggedObject" (isNullaryTaggedObject . gNullaryToJSONTaggedObject)
26
+ , testProperty " TaggedFlatObject" (isNullaryTaggedObject . gNullaryToJSONTaggedFlatObject)
26
27
, testProperty " ObjectWithSingleField" (isObjectWithSingleField . gNullaryToJSONObjectWithSingleField)
27
28
, testGroup " roundTrip" [
28
29
testProperty " string" (toParseJSON gNullaryParseJSONString gNullaryToJSONString)
29
30
, testProperty " 2ElemArray" (toParseJSON gNullaryParseJSON2ElemArray gNullaryToJSON2ElemArray)
30
31
, testProperty " TaggedObject" (toParseJSON gNullaryParseJSONTaggedObject gNullaryToJSONTaggedObject)
32
+ , testProperty " TaggedFlatObject" (toParseJSON gNullaryParseJSONTaggedFlatObject gNullaryToJSONTaggedFlatObject)
31
33
, testProperty " ObjectWithSingleField" (toParseJSON gNullaryParseJSONObjectWithSingleField gNullaryToJSONObjectWithSingleField)
32
34
]
33
35
]
@@ -38,14 +40,17 @@ genericTests =
38
40
, testGroup " SomeType" [
39
41
testProperty " 2ElemArray" (is2ElemArray . gSomeTypeToJSON2ElemArray)
40
42
, testProperty " TaggedObject" (isTaggedObject . gSomeTypeToJSONTaggedObject)
43
+ , testProperty " TaggedFlatObject" (isTaggedObject . gSomeTypeToJSONTaggedFlatObject)
41
44
, testProperty " ObjectWithSingleField" (isObjectWithSingleField . gSomeTypeToJSONObjectWithSingleField)
42
45
, testGroup " roundTrip" [
43
46
testProperty " 2ElemArray" (toParseJSON gSomeTypeParseJSON2ElemArray gSomeTypeToJSON2ElemArray)
44
47
, testProperty " TaggedObject" (toParseJSON gSomeTypeParseJSONTaggedObject gSomeTypeToJSONTaggedObject)
48
+ , testProperty " TaggedFlatObject" (toParseJSON gSomeTypeParseJSONTaggedFlatObject gSomeTypeToJSONTaggedFlatObject)
45
49
, testProperty " ObjectWithSingleField" (toParseJSON gSomeTypeParseJSONObjectWithSingleField gSomeTypeToJSONObjectWithSingleField)
46
50
47
51
, testProperty " 2ElemArray unary" (toParseJSON1 gSomeTypeLiftParseJSON2ElemArray gSomeTypeLiftToJSON2ElemArray)
48
52
, testProperty " TaggedObject unary" (toParseJSON1 gSomeTypeLiftParseJSONTaggedObject gSomeTypeLiftToJSONTaggedObject)
53
+ , testProperty " TaggedFlatObject unary" (toParseJSON1 gSomeTypeLiftParseJSONTaggedFlatObject gSomeTypeLiftToJSONTaggedFlatObject)
49
54
, testProperty " ObjectWithSingleField unary" (toParseJSON1 gSomeTypeLiftParseJSONObjectWithSingleField gSomeTypeLiftToJSONObjectWithSingleField)
50
55
]
51
56
]
@@ -70,6 +75,8 @@ genericTests =
70
75
gNullaryToJSON2ElemArray `sameAs` gNullaryToEncoding2ElemArray
71
76
, testProperty " NullaryTaggedObject" $
72
77
gNullaryToJSONTaggedObject `sameAs` gNullaryToEncodingTaggedObject
78
+ , testProperty " NullaryTaggedFlatObject" $
79
+ gNullaryToJSONTaggedFlatObject `sameAs` gNullaryToEncodingTaggedFlatObject
73
80
, testProperty " NullaryObjectWithSingleField" $
74
81
gNullaryToJSONObjectWithSingleField `sameAs`
75
82
gNullaryToEncodingObjectWithSingleField
@@ -94,6 +101,13 @@ genericTests =
94
101
gSomeTypeLiftToJSONTaggedObject `sameAs1` gSomeTypeLiftToEncodingTaggedObject
95
102
, testProperty " SomeTypeTaggedObject unary agree" $
96
103
gSomeTypeToEncodingTaggedObject `sameAs1Agree` gSomeTypeLiftToEncodingTaggedObject
104
+
105
+ , testProperty " SomeTyptTaggedFlatObject" $
106
+ gSomeTypeToJSONTaggedFlatObject `sameAs` gSomeTypeToEncodingTaggedFlatObject
107
+ , testProperty " SomeTyptTaggedFlatObject unary" $
108
+ gSomeTypeLiftToJSONTaggedFlatObject `sameAs1` gSomeTypeLiftToEncodingTaggedFlatObject
109
+ , testProperty " SomeTyptTaggedFlatObject unary agree" $
110
+ gSomeTypeToEncodingTaggedFlatObject `sameAs1Agree` gSomeTypeLiftToEncodingTaggedFlatObject
97
111
98
112
, testProperty " SomeTypeObjectWithSingleField" $
99
113
gSomeTypeToJSONObjectWithSingleField `sameAs` gSomeTypeToEncodingObjectWithSingleField
0 commit comments