Skip to content

Commit 62c8d87

Browse files
committed
fix: avoid incomplete record updates in Eq tests for GHC 9.12
1 parent 144d4f9 commit 62c8d87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plutus-tx/test/Eq/Spec.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ unitTests =
5252
let v1 :: SomeLargeADT () BuiltinString () () () = SomeLargeADT1 1 () Tx.True "foobar" () ()
5353
v2 :: SomeLargeADT () () () () () = SomeLargeADT2
5454
v3 :: SomeLargeADT () () () () Integer = SomeLargeADT3 1 2 3 4 5
55-
v3Error1 = v3 {f1 = 0, f2 = error ()} -- mismatch comes first, error comes later
56-
v3Error2 = v3 {f1 = error (), f2 = 0} -- error comes first, mismatch later
55+
v3Error1 = SomeLargeADT3 0 (error ()) 3 4 5 -- mismatch comes first, error comes later
56+
v3Error2 = SomeLargeADT3 (error ()) 0 3 4 5 -- error comes first, mismatch later
5757
v4 :: SomeVoid = undefined
5858
v5 = MyNewtype 42
5959
v6 = MyNewtype 99

0 commit comments

Comments
 (0)