Test that the requested data type is respected
(descriptor_func, dtype, sparse)
| 413 | |
| 414 | |
| 415 | def assert_dtype(descriptor_func, dtype, sparse): |
| 416 | """Test that the requested data type is respected""" |
| 417 | system = get_simple_finite() |
| 418 | desc = descriptor_func(dtype=dtype, sparse=sparse)([system]) |
| 419 | features = desc.create(get_simple_finite()) |
| 420 | assert features.dtype == dtype |
| 421 | |
| 422 | |
| 423 | def assert_sparse(descriptor_func): |
no test coverage detected