MCPcopy Index your code
hub / github.com/pathwaycom/pathway / test_intersect_subset

Function test_intersect_subset

python/pathway/tests/test_common.py:3490–3520  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3488
3489
3490def 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
3523def test_update_cells():

Callers

nothing calls this directly

Calls 2

TFunction · 0.90
intersectMethod · 0.80

Tested by

no test coverage detected