Commit b4d45b1
committed
Add array assertions for unary ops
Extend tests in tests/test_expr.py to verify elementwise behavior of unary functions with array inputs. Added assert all(...) checks for sqrt, exp, log, sin, and cos comparing results to numpy equivalents to ensure these functions handle array inputs correctly.1 parent 55c1343 commit b4d45b1
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| 253 | + | |
253 | 254 | | |
| 255 | + | |
254 | 256 | | |
| 257 | + | |
255 | 258 | | |
| 259 | + | |
256 | 260 | | |
| 261 | + | |
257 | 262 | | |
258 | 263 | | |
259 | 264 | | |
| |||
0 commit comments