Skip to content

Commit 2dcbe65

Browse files
committed
Change quasiquoter used in tests to raw-strings-qq - gets rid of process package issues on windows
1 parent a9a3d49 commit 2dcbe65

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

cabal.project

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ test-show-details: direct
5252
-- Always write GHC env files, because they are needed for ghci.
5353
write-ghc-environment-files: always
5454

55-
-- mingw32 build seems to be broken without that
56-
constraints: process >= 1.6.26.1
57-
5855
-- enable parallel builds
5956
jobs: $ncpus
6057
semaphore: True

cardano-api/cardano-api.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,12 +375,12 @@ test-suite cardano-api-test
375375
hedgehog >=1.1,
376376
hedgehog-extras,
377377
hedgehog-quickcheck,
378-
interpolatedstring-perl6,
379378
microlens,
380379
mtl,
381380
ouroboros-consensus,
382381
ouroboros-consensus-cardano,
383382
ouroboros-consensus-protocol,
383+
raw-strings-qq,
384384
tasty,
385385
tasty-hedgehog,
386386
tasty-quickcheck,

cardano-api/test/cardano-api-test/Test/Cardano/Api/Metadata.hs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import Data.Maybe (mapMaybe)
1818
import Data.Word (Word64)
1919
import GHC.Exts (IsList (..))
2020
import GHC.Stack
21-
import Text.InterpolatedString.Perl6
21+
import Text.RawString.QQ
2222

2323
import Test.Gen.Cardano.Api.Metadata
2424

@@ -38,42 +38,42 @@ prop_golden_1 :: Property
3838
prop_golden_1 =
3939
matchMetadata
4040
TxMetadataJsonNoSchema
41-
[q|{"0": 1}|]
41+
[r|{"0": 1}|]
4242
(TxMetadata (fromList [(0, TxMetaNumber 1)]))
4343

4444
prop_golden_2 :: Property
4545
prop_golden_2 =
4646
matchMetadata
4747
TxMetadataJsonNoSchema
48-
[q|{"0": "deadbeef"}|]
48+
[r|{"0": "deadbeef"}|]
4949
(txMetadataSingleton 0 (TxMetaText "deadbeef"))
5050

5151
prop_golden_3 :: Property
5252
prop_golden_3 =
5353
matchMetadata
5454
TxMetadataJsonNoSchema
55-
[q|{"0": "0xDEADBEEF"}|]
55+
[r|{"0": "0xDEADBEEF"}|]
5656
(txMetadataSingleton 0 (TxMetaText "0xDEADBEEF"))
5757

5858
prop_golden_4 :: Property
5959
prop_golden_4 =
6060
matchMetadata
6161
TxMetadataJsonNoSchema
62-
[q|{"0": "0xdeadbeef"}|]
62+
[r|{"0": "0xdeadbeef"}|]
6363
(txMetadataSingleton 0 (TxMetaBytes "\xde\xad\xbe\xef"))
6464

6565
prop_golden_5 :: Property
6666
prop_golden_5 =
6767
matchMetadata
6868
TxMetadataJsonNoSchema
69-
[q|{"0": [] }|]
69+
[r|{"0": [] }|]
7070
(txMetadataSingleton 0 (TxMetaList []))
7171

7272
prop_golden_6 :: Property
7373
prop_golden_6 =
7474
matchMetadata
7575
TxMetadataJsonNoSchema
76-
[q|{"0": [1, "a", "0x42"] }|]
76+
[r|{"0": [1, "a", "0x42"] }|]
7777
( txMetadataSingleton
7878
0
7979
( TxMetaList
@@ -88,14 +88,14 @@ prop_golden_7 :: Property
8888
prop_golden_7 =
8989
matchMetadata
9090
TxMetadataJsonNoSchema
91-
[q|{"0": {} }|]
91+
[r|{"0": {} }|]
9292
(txMetadataSingleton 0 (TxMetaMap []))
9393

9494
prop_golden_8 :: Property
9595
prop_golden_8 =
9696
matchMetadata
9797
TxMetadataJsonNoSchema
98-
[q|{"0": {
98+
[r|{"0": {
9999
"0x41": "0x42",
100100
"0x154041": "0x44",
101101
"0x104041": "0x43",
@@ -159,7 +159,7 @@ prop_golden_9 :: Property
159159
prop_golden_9 =
160160
matchMetadata
161161
TxMetadataJsonDetailedSchema
162-
[q|{"0":
162+
[r|{"0":
163163
{"map":
164164
[ { "k": {"string": "aaa"}
165165
, "v": {"string": "b4"}

0 commit comments

Comments
 (0)