Skip to content
Snippets Groups Projects
Commit 3555853d authored by Frederik Hennig's avatar Frederik Hennig
Browse files

add failing tests

parent 1da860c2
1 merge request!431fix memory layout descriptor parsing
Pipeline #71128 failed with stages
in 42 minutes and 41 seconds
......@@ -197,6 +197,14 @@ def test_spatial_memory_layout_descriptors():
== (0, 1, 2)
)
assert spatial_layout_string_to_tuple("C", 5) == (0, 1, 2, 3, 4)
with pytest.raises(ValueError):
spatial_layout_string_to_tuple("aos", -1)
with pytest.raises(ValueError):
spatial_layout_string_to_tuple("aos", 4)
def test_memory_layout_descriptors():
assert (
......@@ -221,6 +229,14 @@ def test_memory_layout_descriptors():
== (0, 1, 2, 3)
)
assert layout_string_to_tuple("C", 5) == (0, 1, 2, 3, 4)
with pytest.raises(ValueError):
layout_string_to_tuple("aos", -1)
with pytest.raises(ValueError):
layout_string_to_tuple("aos", 5)
def test_staggered():
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment