Update tests (don't include both het+hom if only one passes filter).
authorTom Clegg <tom@curii.com>
Thu, 17 Feb 2022 15:07:02 +0000 (10:07 -0500)
committerTom Clegg <tom@curii.com>
Thu, 17 Feb 2022 15:07:02 +0000 (10:07 -0500)
refs #18581

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

slice_test.go

index b0d02fdcdac28dfcb61ca2f4bdb04c072b01a322..37a7a9e866ebe9dbf36b40ceda2409761758f4b7 100644 (file)
@@ -291,17 +291,17 @@ pipeline1dup/input2       0
                defer f.Close()
                npy, err := gonpy.NewReader(f)
                c.Assert(err, check.IsNil)
-               c.Check(npy.Shape, check.DeepEquals, []int{4, 6})
+               c.Check(npy.Shape, check.DeepEquals, []int{4, 3})
                onehot, err := npy.GetInt8()
                if c.Check(err, check.IsNil) {
                        for r := 0; r < npy.Shape[0]; r++ {
                                c.Logf("%v", onehot[r*npy.Shape[1]:(r+1)*npy.Shape[1]])
                        }
                        c.Check(onehot, check.DeepEquals, []int8{
-                               0, 0, 0, 1, 0, 0, // input1
-                               0, 1, 0, 0, 0, 1, // input2
-                               0, 0, 0, 1, 0, 0, // dup/input1
-                               0, 1, 0, 0, 0, 1, // dup/input2
+                               0, 1, 0, // input1
+                               1, 0, 1, // input2
+                               0, 1, 0, // dup/input1
+                               1, 0, 1, // dup/input2
                        })
                }
        }
@@ -343,7 +343,7 @@ pipeline1dup/input2 0
                        }
                        c.Check(onehot, check.DeepEquals, []uint32{
                                0, 2, 1, 3, 0, 2, 1, 3, 0, 2, 1, 3, 0, 2, 0, 2,
-                               1, 1, 2, 2, 5, 5, 7, 7, 9, 9, 11, 11, 13, 13, 15, 15,
+                               0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7,
                        })
                }
        }