()
| 5827 | |
| 5828 | |
| 5829 | def test_unwrap(): |
| 5830 | a = T( |
| 5831 | """ |
| 5832 | foo |
| 5833 | 1 |
| 5834 | 2 |
| 5835 | 3 |
| 5836 | None |
| 5837 | """ |
| 5838 | ) |
| 5839 | result = a.filter(a.foo.is_not_none()).select(ret=pw.unwrap(pw.this.foo)) |
| 5840 | |
| 5841 | assert_table_equality( |
| 5842 | result, |
| 5843 | T( |
| 5844 | """ |
| 5845 | ret |
| 5846 | 1 |
| 5847 | 2 |
| 5848 | 3 |
| 5849 | """ |
| 5850 | ), |
| 5851 | ) |
| 5852 | |
| 5853 | |
| 5854 | def test_unwrap_with_nones(): |
nothing calls this directly
no test coverage detected