def test_neq(self): x, y, z = inputs() fn = gof.DualLinker().accept(FunctionGraph([x,y], [neq(x,y)])).make_function() for a,b in ((3.,9), (3,0.9), (3,3)): self.assertTrue(fn(a,b) == (a!=b))
def test_neq(self): x, y, z = inputs() fn = gof.DualLinker().accept(FunctionGraph( [x, y], [neq(x, y)])).make_function() for a, b in ((3., 9), (3, 0.9), (3, 3)): self.assertTrue(fn(a, b) == (a != b))
def test_neq(self): x, y, z = floats("xyz") fn = gof.DualLinker().accept(FunctionGraph([x, y], [neq(x, y)])).make_function() for a, b in ((3.0, 9), (3, 0.9), (3, 3)): assert fn(a, b) == (a != b)