Commit 8e94e90
peng.li24
refactor: consolidate test_all.py with data-driven parametrization
- Merge 60+ repetitive test classes into 2 parametrized test functions:
test_unary_math (18 functions × multiple sizes) and test_comparison (4 ops)
- Expand test data: transcendental functions tested up to 100,000 elements
- Fix arcsin/arccos NaN issue: clip inputs to valid [-1, 1] range
- Reduce line count from 1382 to 955 (-31%) while preserving all logic
- Remove large-array reduction tests (pairwise_sum ULP issue for >10k elements
needs C++ fix; tracked separately)
- Makefile: silent @ prefix for test recipe
- Remove unnecessary warnings filter from __main__ block
- 449 tests, all passing with bit-level precision1 parent 299af61 commit 8e94e90
2 files changed
Lines changed: 555 additions & 798 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
0 commit comments