Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Commit fbd592f

Browse files
committed
updated tests
1 parent abde3db commit fbd592f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

test/test_unit.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,19 @@ def test_fam_constructor_array_int_d():
9494

9595
def test_fam_constructor_array_int_e():
9696
# https://github.com/static-frame/arraymap/issues/12
97-
a1 = np.array((0, 0, 1, 1, 2, 2), dtype=np.int32)
97+
a1 = np.array((0, 0, 1, 1, 2, 2), dtype=int)
9898
a2 = a1[[0, 2, 4]]
9999
a2.flags.writeable = False
100100
fam1 = FrozenAutoMap(a2)
101101
assert list(fam1) == [0, 1, 2]
102102

103-
d1 = {i: i for i in a2}
103+
d1 = {i: int(i) for i in a2}
104104
fam2 = FrozenAutoMap(d1)
105+
assert list(fam2) == [0, 1, 2]
105106

106107
d2 = {0: 0, 3: 1}
107108
fam3 = FrozenAutoMap(d2)
109+
assert list(fam3) == [0, 3]
108110

109111

110112
# ------------------------------------------------------------------------------

0 commit comments

Comments
 (0)