Skip to content

Commit c47950e

Browse files
author
peng.li24
committed
test: update test report and test_all.py
1 parent a42a5ed commit c47950e

2 files changed

Lines changed: 0 additions & 23 deletions

File tree

tests/report.csv

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -789,14 +789,6 @@ elementwise,isinf,bit_exact,float64,special,PASS,-1
789789
elementwise,isinf,bit_exact,float32,special,PASS,-1
790790
elementwise,isfinite,bit_exact,float64,special,PASS,-1
791791
elementwise,isfinite,bit_exact,float32,special,PASS,-1
792-
elementwise,astype,bit_exact,float64,to_int,SKIP,-1
793-
elementwise,astype,bit_exact,float64,to_bool,SKIP,-1
794-
elementwise,astype,bit_exact,float64,to_float32,SKIP,-1
795-
elementwise,astype,bit_exact,int32,to_bool,SKIP,-1
796-
elementwise,astype,bit_exact,int32,to_float64,SKIP,-1
797-
elementwise,astype,bit_exact,float32,to_float64,SKIP,-1
798-
elementwise,astype,bit_exact,bool,to_float64,SKIP,-1
799-
elementwise,astype,bit_exact,bool,to_int,SKIP,-1
800792
init,zeros_like,bit_exact,float64,"(3, 4)",PASS,0
801793
init,zeros_like,bit_exact,float64,"(5,)",PASS,0
802794
init,zeros_like,bit_exact,float32,"(3, 4)",PASS,0

tests/test_all.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -354,21 +354,6 @@ def _catalog_elementwise():
354354
a = np.array([0.0, np.nan, np.inf, -np.inf, 1.0], dtype=dt)
355355
yield TestCase(name, (a,), {}, dn, "special", "bit_exact", True, None)
356356

357-
# ── 类型转换: astype ──
358-
_ASTYPE_CONVS = [
359-
(np.float64, "int"), (np.float64, "bool"), (np.float64, "float32"),
360-
(np.int32, "bool"), (np.int32, "float64"), (np.float32, "float64"),
361-
(bool, "float64"), (bool, "int"),
362-
]
363-
for src_dt, dst_str in _ASTYPE_CONVS:
364-
if src_dt == bool:
365-
a = np.array([True, False, True, False], dtype=bool)
366-
elif src_dt == np.int32:
367-
a = np.array([0, 1, -1, 42], dtype=np.int32)
368-
else:
369-
a = _make_extreme((100,), src_dt, "random", seed=42)
370-
yield TestCase("astype", (a, dst_str), {}, src_dt.__name__,
371-
f"to_{dst_str}", "bit_exact", True, None)
372357

373358

374359
# ── 第2类: init (init_py.h, 15 APIs) ─────────────────────────────────────────

0 commit comments

Comments
 (0)