()
| 3488 | |
| 3489 | |
| 3490 | def test_intersect_subset(): |
| 3491 | t1 = T( |
| 3492 | """ |
| 3493 | | col |
| 3494 | 1 | 11 |
| 3495 | 2 | 12 |
| 3496 | 3 | 13 |
| 3497 | """ |
| 3498 | ) |
| 3499 | t2 = T( |
| 3500 | """ |
| 3501 | | col |
| 3502 | 2 | 11 |
| 3503 | 3 | 11 |
| 3504 | """ |
| 3505 | ) |
| 3506 | pw.universes.promise_is_subset_of(t2, t1) |
| 3507 | |
| 3508 | res = t1.intersect(t2) |
| 3509 | |
| 3510 | assert_table_equality( |
| 3511 | res, |
| 3512 | T( |
| 3513 | """ |
| 3514 | | col |
| 3515 | 2 | 12 |
| 3516 | 3 | 13 |
| 3517 | """ |
| 3518 | ), |
| 3519 | ) |
| 3520 | assert res._universe != t2._universe |
| 3521 | |
| 3522 | |
| 3523 | def test_update_cells(): |