Beispiel #1
0
 def test_combine_xor(self):
     """This function tests the xor combiner function with one pair of input and output."""
     assert_array_equal(
         LTFArray.combiner_xor(
             [
                 [1., 1., -3., 1.],
                 [-1., -1., -1., 1.],
                 [-2., -2., 2., 1.]
             ]
         ),
         [
             -3.,
             -1.,
             8.
         ]
     )
Beispiel #2
0
 def test_combine_xor(self):
     assert_array_equal(
         LTFArray.combiner_xor([[1, 1, -3, 1], [-1, -1, -1, 1],
                                [-2, -2, 2, 1]]), [-3, -1, 8])