1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 18:06:14 +03:00
This commit is contained in:
Rob Rix 2019-08-02 15:37:50 -04:00
parent b5e6aab55b
commit e986ed0937
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -99,5 +99,5 @@ insetRange Range {..} = Range (succ start) (pred end)
instance QC.Arbitrary Source where
arbitrary = fromText . Text.pack <$> QC.listOf (QC.oneof [ pure '\r' , pure '\n' , QC.arbitraryUnicodeChar ])
arbitrary = fromText . Text.pack <$> QC.listOf (QC.oneof [ pure '\r', pure '\n', QC.arbitraryUnicodeChar ])
shrink src = fromText . Text.pack <$> QC.shrinkList QC.shrinkNothing (Text.unpack (toText src))