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

Function test_optional_int_addition

python/pathway/tests/test_operators.py:1216–1236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1214
1215
1216def test_optional_int_addition():
1217 table = T(
1218 """
1219 a | b
1220 1 | 1
1221 | 2
1222 3 |
1223 """
1224 )
1225 result = (
1226 table.filter(pw.this.a.is_not_none())
1227 .filter(pw.this.b.is_not_none())
1228 .select(resA=pw.this.a + pw.this.b)
1229 )
1230 expected = T(
1231 """
1232 resA
1233 2
1234 """
1235 )
1236 assert_table_equality(result, expected)
1237
1238
1239def test_tuples():

Callers

nothing calls this directly

Calls 4

TFunction · 0.90
is_not_noneMethod · 0.80
selectMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected