@@ -22,12 +22,14 @@ templateHaskellTests =
2222 testProperty " string" (isString . thNullaryToJSONString)
2323 , testProperty " 2ElemArray" (is2ElemArray . thNullaryToJSON2ElemArray)
2424 , testProperty " TaggedObject" (isNullaryTaggedObject . thNullaryToJSONTaggedObject)
25+ , testProperty " TaggedFlatObject" (isNullaryTaggedObject . thNullaryToJSONTaggedFlatObject)
2526 , testProperty " ObjectWithSingleField" (isObjectWithSingleField . thNullaryToJSONObjectWithSingleField)
2627
2728 , testGroup " roundTrip" [
2829 testProperty " string" (toParseJSON thNullaryParseJSONString thNullaryToJSONString)
2930 , testProperty " 2ElemArray" (toParseJSON thNullaryParseJSON2ElemArray thNullaryToJSON2ElemArray)
3031 , testProperty " TaggedObject" (toParseJSON thNullaryParseJSONTaggedObject thNullaryToJSONTaggedObject)
32+ , testProperty " TaggedFlatObject" (toParseJSON thNullaryParseJSONTaggedFlatObject thNullaryToJSONTaggedFlatObject)
3133 , testProperty " ObjectWithSingleField" (toParseJSON thNullaryParseJSONObjectWithSingleField thNullaryToJSONObjectWithSingleField)
3234 ]
3335 ]
@@ -38,14 +40,17 @@ templateHaskellTests =
3840 , testGroup " SomeType" [
3941 testProperty " 2ElemArray" (is2ElemArray . thSomeTypeToJSON2ElemArray)
4042 , testProperty " TaggedObject" (isTaggedObject . thSomeTypeToJSONTaggedObject)
43+ , testProperty " TaggedFlatObject" (isTaggedObject . thSomeTypeToJSONTaggedFlatObject)
4144 , testProperty " ObjectWithSingleField" (isObjectWithSingleField . thSomeTypeToJSONObjectWithSingleField)
4245 , testGroup " roundTrip" [
4346 testProperty " 2ElemArray" (toParseJSON thSomeTypeParseJSON2ElemArray thSomeTypeToJSON2ElemArray)
4447 , testProperty " TaggedObject" (toParseJSON thSomeTypeParseJSONTaggedObject thSomeTypeToJSONTaggedObject)
48+ , testProperty " TaggedFlatObject" (toParseJSON thSomeTypeParseJSONTaggedFlatObject thSomeTypeToJSONTaggedFlatObject)
4549 , testProperty " ObjectWithSingleField" (toParseJSON thSomeTypeParseJSONObjectWithSingleField thSomeTypeToJSONObjectWithSingleField)
4650
4751 , testProperty " 2ElemArray unary" (toParseJSON1 thSomeTypeLiftParseJSON2ElemArray thSomeTypeLiftToJSON2ElemArray)
4852 , testProperty " TaggedObject unary" (toParseJSON1 thSomeTypeLiftParseJSONTaggedObject thSomeTypeLiftToJSONTaggedObject)
53+ , testProperty " TaggedFlatObject unary" (toParseJSON1 thSomeTypeLiftParseJSONTaggedFlatObject thSomeTypeLiftToJSONTaggedFlatObject)
4954 , testProperty " ObjectWithSingleField unary" (toParseJSON1 thSomeTypeLiftParseJSONObjectWithSingleField thSomeTypeLiftToJSONObjectWithSingleField)
5055
5156 ]
@@ -87,6 +92,8 @@ templateHaskellTests =
8792 thNullaryToJSON2ElemArray `sameAs` thNullaryToEncoding2ElemArray
8893 , testProperty " NullaryTaggedObject" $
8994 thNullaryToJSONTaggedObject `sameAs` thNullaryToEncodingTaggedObject
95+ , testProperty " NullaryTaggedFlatObject" $
96+ thNullaryToJSONTaggedFlatObject `sameAs` thNullaryToEncodingTaggedFlatObject
9097 , testProperty " NullaryObjectWithSingleField" $
9198 thNullaryToJSONObjectWithSingleField `sameAs`
9299 thNullaryToEncodingObjectWithSingleField
@@ -112,6 +119,13 @@ templateHaskellTests =
112119 , testProperty " SomeTypeTaggedObject unary agree" $
113120 thSomeTypeToEncodingTaggedObject `sameAs1Agree` thSomeTypeLiftToEncodingTaggedObject
114121
122+ , testProperty " SomeTypeTaggedFlatObject" $
123+ thSomeTypeToJSONTaggedFlatObject `sameAs` thSomeTypeToEncodingTaggedFlatObject
124+ , testProperty " SomeTypeTaggedFlatObject unary" $
125+ thSomeTypeLiftToJSONTaggedFlatObject `sameAs1` thSomeTypeLiftToEncodingTaggedFlatObject
126+ , testProperty " SomeTypeTaggedFlatObject unary agree" $
127+ thSomeTypeToEncodingTaggedFlatObject `sameAs1Agree` thSomeTypeLiftToEncodingTaggedFlatObject
128+
115129 , testProperty " SomeTypeObjectWithSingleField" $
116130 thSomeTypeToJSONObjectWithSingleField `sameAs` thSomeTypeToEncodingObjectWithSingleField
117131 , testProperty " SomeTypeObjectWithSingleField unary" $
0 commit comments