def test_eq(self):
     x, y, z = inputs()
     fn = gof.DualLinker().accept(FunctionGraph([x,y], [eq(x,y)])).make_function()
     for a,b in ((3.,9), (3,0.9), (3,3)):
         self.assertTrue(fn(a,b) == (a==b))
Exemple #2
0
 def test_eq(self):
     x, y, z = inputs()
     fn = gof.DualLinker().accept(FunctionGraph(
         [x, y], [eq(x, y)])).make_function()
     for a, b in ((3., 9), (3, 0.9), (3, 3)):
         self.assertTrue(fn(a, b) == (a == b))
Exemple #3
0
 def test_eq(self):
     x, y, z = floats("xyz")
     fn = gof.DualLinker().accept(FunctionGraph([x, y], [eq(x, y)])).make_function()
     for a, b in ((3.0, 9), (3, 0.9), (3, 3)):
         assert fn(a, b) == (a == b)