Skip to content

Commit 59cf10b

Browse files
committed
Add more failing parametrizations to test_get_groupings and test_fix_ungrouped_dims, remove print
1 parent 16e6165 commit 59cf10b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/unit/sparse/test_diagonal_sparse_tensor.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,13 @@ def test_encode_by_order(
190190
[
191191
([[0, 1, 2], [2, 0, 1], [2]], [[0, 1], [2]]),
192192
([[0, 1, 0, 1]], [[0, 1]]),
193+
([[0, 1, 0, 1, 2]], [[0, 1], [2]]),
194+
([[0, 0]], [[0, 0]]),
195+
([[0, 1], [1, 2]], [[0], [1], [2]]),
193196
],
194197
)
195198
def test_get_groupings(v_to_ps: list[list[int]], expected_groupings: list[list[int]]):
196199
groupings = get_groupings(v_to_ps)
197-
print(groupings)
198200

199201
assert groupings == expected_groupings
200202

@@ -204,6 +206,7 @@ def test_get_groupings(v_to_ps: list[list[int]], expected_groupings: list[list[i
204206
[
205207
([3, 4, 5], [[0, 1, 2], [2, 0, 1], [2]], [12, 5], [[0, 1], [1, 0], [1]]),
206208
([32, 20, 8], [[0], [1, 0], [2]], [32, 20, 8], [[0], [1, 0], [2]]),
209+
([3, 3, 4], [[0, 1], [1, 2]], [3, 3, 4], [[0, 1], [1, 2]]),
207210
],
208211
)
209212
def test_fix_ungrouped_dims(

0 commit comments

Comments
 (0)