File tree 3 files changed +7
-5
lines changed
test/Test/Cardano/Api/Typed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ validateScriptData d =
270
270
--
271
271
newtype ScriptDataRangeError =
272
272
273
- -- | The number is outside the maximum range of @-2^64-1 .. 2^64-1@.
273
+ -- | The constructor number is outside the maximum range of @-2^64-1 .. 2^64-1@.
274
274
--
275
275
ScriptDataConstructorOutOfRange Integer
276
276
deriving (Eq , Show )
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ prop_roundtrip_script_PlutusScriptV2_CBOR =
149
149
150
150
prop_roundtrip_ScriptData_CBOR :: Property
151
151
prop_roundtrip_ScriptData_CBOR =
152
- roundtrip_CBOR AsScriptData genScriptData
152
+ roundtrip_CBOR AsHashableScriptData genHashableScriptData
153
153
154
154
prop_roundtrip_UpdateProposal_CBOR :: Property
155
155
prop_roundtrip_UpdateProposal_CBOR =
@@ -220,6 +220,7 @@ tests = testGroup "Test.Cardano.Api.Typed.CBOR"
220
220
, testPropertyNamed " roundtrip script PlutusScriptV1 CBOR" " roundtrip script PlutusScriptV1 CBOR" prop_roundtrip_script_PlutusScriptV1_CBOR
221
221
, testPropertyNamed " roundtrip script PlutusScriptV2 CBOR" " roundtrip script PlutusScriptV2 CBOR" prop_roundtrip_script_PlutusScriptV2_CBOR
222
222
, testPropertyNamed " roundtrip UpdateProposal CBOR" " roundtrip UpdateProposal CBOR" prop_roundtrip_UpdateProposal_CBOR
223
+ , testPropertyNamed " roundtrip ScriptData CBOR" " roundtrip ScriptData CBOR" prop_roundtrip_ScriptData_CBOR
223
224
, testGroup " roundtrip txbody CBOR" test_roundtrip_txbody_CBOR
224
225
, testGroup " roundtrip tx CBOR" test_roundtrip_tx_CBOR
225
226
, testGroup " roundtrip Tx Cddl" test_roundtrip_Tx_Cddl
Original file line number Diff line number Diff line change @@ -116,10 +116,10 @@ prop_roundtrip_ScriptData =
116
116
sData <- H. forAll genHashableScriptData
117
117
sData === fromAlonzoData (toAlonzoData sData)
118
118
119
- prop_roundtrip_ScriptData_JSON :: Property
120
- prop_roundtrip_ScriptData_JSON =
119
+ prop_roundtrip_HashableScriptData_JSON :: Property
120
+ prop_roundtrip_HashableScriptData_JSON =
121
121
H. property $ do
122
- sData <- H. forAll genScriptData
122
+ sData <- H. forAll genHashableScriptData
123
123
H. tripping sData scriptDataToJsonDetailedSchema scriptDataFromJsonDetailedSchema
124
124
125
125
-- -----------------------------------------------------------------------------
@@ -134,4 +134,5 @@ tests = testGroup "Test.Cardano.Api.Typed.Script"
134
134
, testPropertyNamed " golden SimpleScriptV2 MofN" " golden SimpleScriptV2 MofN" prop_golden_SimpleScriptV2_MofN
135
135
, testPropertyNamed " roundtrip SimpleScript JSON" " roundtrip SimpleScript JSON" prop_roundtrip_SimpleScript_JSON
136
136
, testPropertyNamed " roundtrip ScriptData" " roundtrip ScriptData" prop_roundtrip_ScriptData
137
+ , testPropertyNamed " roundtrip HashableScriptData" " roundtrip HashableScriptData" prop_roundtrip_HashableScriptData_JSON
137
138
]
You can’t perform that action at this time.
0 commit comments