Commit 2854737
committed
Add tests for Expr/GenExpr array interactions
Extend tests in tests/test_expr.py to cover interactions between Expr/GenExpr and numpy arrays and matrix variables. Added assertions for Expr + array and GenExpr + array string representations, and for comparison operators (>=, <=, ==) against a matrix variable (m.addMatrixVar(1)), verifying expected ExprCons representations. Removed a now-redundant x + np.array([1]) test.1 parent ea18c2c commit 2854737
1 file changed
Lines changed: 29 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
334 | 363 | | |
335 | 364 | | |
336 | 365 | | |
337 | | - | |
338 | | - | |
339 | | - | |
| |||
0 commit comments