Skip to content

Commit a73f51d

Browse files
author
Dan Fithian
committed
Add tests for const
1 parent c5f586e commit a73f51d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/PropertyKeys.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ keysTests =
3737
, testProperty "Version" $ roundTripKey (undefined :: Version)
3838
, testProperty "Lazy Text" $ roundTripKey (undefined :: LT.Text)
3939
, testProperty "UUID" $ roundTripKey UUID.nil
40+
, testProperty "Const Text" $ roundTripKey (undefined :: Const Text)
4041
]

tests/UnitTests.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ fromJSONKeyAssertions =
343343
[ assertIsCoerce "Text" (fromJSONKey :: FromJSONKeyFunction Text)
344344
, assertIsCoerce "Tagged Int Text" (fromJSONKey :: FromJSONKeyFunction (Tagged Int Text))
345345
, assertIsCoerce "MyText" (fromJSONKey :: FromJSONKeyFunction MyText)
346+
, assertIsCoerce "Const Text" (fromJSONKey :: FromJSONKeyFunction (Const Text))
346347

347348
#if __GLASGOW_HASKELL__ >= 710
348349
, assertIsCoerce' "MyText'" (fromJSONKey :: FromJSONKeyFunction MyText')

0 commit comments

Comments
 (0)