We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f706672 commit 70a7a3bCopy full SHA for 70a7a3b
test/pycardano/test_serialization.py
@@ -1107,3 +1107,16 @@ def test_definite_list_highjacking_does_not_break_cbor2_datum():
1107
decoded = cbor2.loads(encoded)
1108
assert isinstance(list(decoded.keys())[0], CBORTag)
1109
assert isinstance(list(decoded.keys())[0].value, (list, tuple))
1110
+
1111
1112
+def test_ordered_set_as_key_in_dict_indefinite_list():
1113
+ a = NonEmptyOrderedSet(IndefiniteList([1, 2, 3]))
1114
1115
+ class MyTest(DictCBORSerializable):
1116
+ KEY_TYPE = NonEmptyOrderedSet
1117
+ VALUE_TYPE = int
1118
1119
+ d = MyTest()
1120
+ d[a] = 1
1121
1122
+ check_two_way_cbor(d)
0 commit comments