Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 831a7d6

Browse files
committed
Label the exhaustiveness property.
1 parent 99b1287 commit 831a7d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/Data/Source/Spec.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ testTree = Tasty.testGroup "Data.Source"
3131
\ source -> QC.label (summarize source) $
3232
length (sourceLineRanges source) QC.=== length (Text.splitOn "\r\n" (toText source)>>= Text.splitOn "\r" >>= Text.splitOn "\n")
3333

34-
, prop "produces exhaustive ranges" $
35-
\ source -> foldMap (`slice` source) (sourceLineRanges source) === source
34+
, QC.testProperty "produces exhaustive ranges" $
35+
\ source -> QC.label (summarize source) $
36+
foldMap (`slice` source) (sourceLineRanges source) QC.=== source
3637
]
3738

3839
, Tasty.testGroup "spanToRange"

0 commit comments

Comments
 (0)