()
| 2419 | |
| 2420 | |
| 2421 | def test_ix_none(): |
| 2422 | t_animals = T( |
| 2423 | """ |
| 2424 | | genus | epithet |
| 2425 | 1 | upupa | epops |
| 2426 | 2 | acherontia | atropos |
| 2427 | 3 | bubo | scandiacus |
| 2428 | 4 | dynastes | hercules |
| 2429 | """ |
| 2430 | ) |
| 2431 | t_birds = T( |
| 2432 | """ |
| 2433 | | desc | ptr |
| 2434 | 1 | hoopoe | 2 |
| 2435 | 2 | owl | 4 |
| 2436 | 3 | brbrb | |
| 2437 | """ |
| 2438 | ).with_columns(ptr=t_animals.pointer_from(pw.this.ptr, optional=True)) |
| 2439 | |
| 2440 | res = t_birds.select(latin=t_animals.ix(t_birds.ptr, optional=True).genus) |
| 2441 | expected = T( |
| 2442 | """ |
| 2443 | | latin |
| 2444 | 1 | acherontia |
| 2445 | 2 | dynastes |
| 2446 | 3 | |
| 2447 | """ |
| 2448 | ) |
| 2449 | assert_table_equality(res, expected) |
| 2450 | |
| 2451 | |
| 2452 | def test_ix_this_getitem(): |
nothing calls this directly
no test coverage detected