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

Commit bd13029

Browse files
committed
implemented unit test for uint32
1 parent 091bac3 commit bd13029

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

tasks.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,22 @@
88

99
@invoke.task
1010
def install(context):
11-
run(context, f"{sys.executable} -m pip install --upgrade pip")
12-
run(context, f"{sys.executable} -m pip install --upgrade -r requirements.txt")
11+
run(
12+
context,
13+
f"{sys.executable} -m pip --disable-pip-version-check install --upgrade pip",
14+
)
15+
run(
16+
context,
17+
f"{sys.executable} -m pip --disable-pip-version-check install --upgrade -r requirements.txt",
18+
)
1319

1420

1521
@invoke.task()
1622
def clean(context):
17-
run(context, f"{sys.executable} -m pip uninstall --yes arraymap")
23+
run(
24+
context,
25+
f"{sys.executable} -m pip --disable-pip-version-check uninstall --yes arraymap",
26+
)
1827

1928
for artifact in ("*.egg-info", "*.so", "build", "dist"):
2029
run(context, f"rm -rf {artifact}")
@@ -23,7 +32,7 @@ def clean(context):
2332

2433
@invoke.task(clean)
2534
def build(context):
26-
run(context, f"{sys.executable} -m pip -v install .")
35+
run(context, f"{sys.executable} -m pip --disable-pip-version-check -v install .")
2736

2837

2938
@invoke.task(build)

test/test_unit.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,4 +897,7 @@ def test_fam_array_get_any_b():
897897
fam = FrozenAutoMap(a1)
898898

899899
post1 = fam.get_any(a1_list)
900+
900901
assert post1 == list(fam.values())
902+
assert a1[0] in fam
903+
assert 4294967295 in fam

0 commit comments

Comments
 (0)