Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanshs committed Sep 14, 2020
1 parent f296efa commit 8269bf5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/sparse_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@ def test_04():


def test_05():
sparse_sampling = {
"encoding": "base64",
"unsigned_integer_type": "float32",
"dimension_indexes": [0],
"sparse_grid_vertexes": [0, 5, 10, 15, 20, 25],
}
error = "float32 is an invalid `unsigned_integer_type` enumeration"
with pytest.raises(ValueError, match=".*{0}.*".format(error)):
check_sparse_sampling_key_value({"sparse_sampling": sparse_sampling})


def test_06():
sp1 = SparseSampling(**sparse_sampling)
sp2 = SparseSampling(**sparse_sampling)

Expand Down

0 comments on commit 8269bf5

Please sign in to comment.