From 777b38f21772435fe82414f3b135fb3ee6a8afa1 Mon Sep 17 00:00:00 2001 From: Connor Tann <71127464+connortann@users.noreply.github.com> Date: Thu, 7 Mar 2024 13:13:12 +0000 Subject: [PATCH] More verbose tests --- slicer/test_slicer.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/slicer/test_slicer.py b/slicer/test_slicer.py index 7070aa4..0566fe2 100644 --- a/slicer/test_slicer.py +++ b/slicer/test_slicer.py @@ -246,6 +246,7 @@ def test_slicer_sparse(): candidates = [csc_array, csr_array, dok_array, lil_array] for candidate in candidates: + print("testing:", type(candidate)) slicer = S(candidate) actual = slicer[0, 0] assert ctr_eq(actual.o, 1) @@ -341,7 +342,8 @@ def test_operations_1d(): array = np.array(elements) torch_array = torch.tensor(elements) containers = [li, tup, array, torch_array, di, series] - for _, ctr in enumerate(containers): + for ctr in containers: + print("testing:", type(ctr)) slicer = AtomicSlicer(ctr) assert ctr_eq(slicer[0], elements[0]) @@ -371,7 +373,8 @@ def test_operations_2d(): sparse_lil = lil_matrix(elements) containers = [li, df, sparse_csc, sparse_csr, sparse_dok, sparse_lil] - for _, ctr in enumerate(containers): + for ctr in containers: + print("testing:", type(ctr)) slicer = AtomicSlicer(ctr) assert ctr_eq(slicer[0], elements[0]) @@ -432,7 +435,8 @@ def test_operations_3d(): list_of_multi_arrays, di_of_multi_arrays, ] - for _, ctr in enumerate(containers): + for ctr in containers: + print("testing:", type(ctr)) slicer = AtomicSlicer(ctr) assert ctr_eq(slicer[0], elements[0])