Commit 92ca8348 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent a7510288
...@@ -100,6 +100,7 @@ def test_iterAllStructs(): ...@@ -100,6 +100,7 @@ def test_iterAllStructs():
assert X([1,3], 0, 0) == [ T([], B(1,3)) ] assert X([1,3], 0, 0) == [ T([], B(1,3)) ]
assert X([1,3], 0, 1) == [ T([], B(1,3)), assert X([1,3], 0, 1) == [ T([], B(1,3)),
# nsplit=1
T([0], B(), B(1,3)), T([0], B(), B(1,3)),
T([1], B(), B(1,3)), T([1], B(), B(1,3)),
T([2], B(1), B(3)), T([2], B(1), B(3)),
...@@ -107,7 +108,13 @@ def test_iterAllStructs(): ...@@ -107,7 +108,13 @@ def test_iterAllStructs():
T([4], B(1,3), B()), T([4], B(1,3), B()),
] ]
print('\n\nAAA\n\n') assert X([1,3], 1, 0) == [ T([], B(1,3)),
# depth=1
T([],
T([], B(1,3)))
]
assert X([1,3], 0, 2) == [ T([], B(1,3)), assert X([1,3], 0, 2) == [ T([], B(1,3)),
# nsplit=1 # nsplit=1
T([0], B(), B(1,3)), T([0], B(), B(1,3)),
......
Markdown is supported
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