()
| 1214 | |
| 1215 | |
| 1216 | def 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 | |
| 1239 | def test_tuples(): |
nothing calls this directly
no test coverage detected