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

Commit abde3db

Browse files
committed
extended tes
1 parent a120b55 commit abde3db

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

test/test_unit.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,13 @@ 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, 1, 2), dtype=np.int64)
98-
a1.flags.writeable = False
99-
fam1 = FrozenAutoMap(a1)
97+
a1 = np.array((0, 0, 1, 1, 2, 2), dtype=np.int32)
98+
a2 = a1[[0, 2, 4]]
99+
a2.flags.writeable = False
100+
fam1 = FrozenAutoMap(a2)
101+
assert list(fam1) == [0, 1, 2]
100102

101-
d1 = {i: i for i in a1}
103+
d1 = {i: i for i in a2}
102104
fam2 = FrozenAutoMap(d1)
103105

104106
d2 = {0: 0, 3: 1}

0 commit comments

Comments
 (0)