Example #1
0
 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))
Example #2
0
 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))
Example #3
0
 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)