def test_subtract_04(self): "subtract test #04" y1 = larry([1, 2, nan], [['a', 'b', 'c']]) y2 = larry([1, nan, nan], [['a', 'b', 'dd']]) actual = subtract(y1, y2, join='outer', missone=0, misstwo=0) desired = larry([0, 2, 0, 0], [['a', 'b', 'c', 'dd']], dtype=float) msg = "subtract failed" ale(actual, desired, msg, original=y1) ale(actual, desired, msg, original=y2)
def test_subtract_03(self): "subtract test #03" y1 = larry([1, 2, nan], [['a', 'b', 'c']]) y2 = larry([1, nan, nan], [['a', 'b', 'dd']]) actual = subtract(y1, y2, join='outer') desired = larry([0, nan, nan, nan], [['a', 'b', 'c', 'dd']]) msg = "subtract failed" ale(actual, desired, msg, original=y1) ale(actual, desired, msg, original=y2)
def test_subtract_02(self): "subtract test #02" y1 = larry([1, 2, nan], [['a', 'b', 'c']]) y2 = larry([1, nan, nan], [['a', 'b', 'dd']]) actual = subtract(y1, y2, missone=0) desired = larry([0, 2], [['a', 'b']], dtype=float) msg = "subtract failed" ale(actual, desired, msg, original=y1) ale(actual, desired, msg, original=y2)