(self)
| 2553 | # TODO inherit VariableSubclassobjects to cover more tests |
| 2554 | |
| 2555 | def test_as_sparse(self): |
| 2556 | data = np.arange(12).reshape(3, 4) |
| 2557 | var = Variable(("x", "y"), data)._as_sparse(fill_value=-1) |
| 2558 | actual = var._to_dense() |
| 2559 | assert_identical(var, actual) |
| 2560 | |
| 2561 | |
| 2562 | class TestIndexVariable(VariableSubclassobjects): |
nothing calls this directly
no test coverage detected