def test_two(self):
     a = predicats.gt(0)
     b = predicats.lt(5)
     c = predicats.for_all(a, b, a)
     assert c(10) is False
 def test_four(self):
     a = predicats.gt(0)
     b = predicats.lt(5)
     c = predicats.for_any(a, b)
     assert c(-10) is True
 def test_one(self):
     a = predicats.gt(0)
     b = predicats.lt(5)
     c = predicats.for_all(a, b)
     assert c(3) is True
 def test_four(self):
     a = predicats.gt(0)
     b = predicats.lt(-5)
     c = a >> b
     assert c(-2) is True
 def test_two(self):
     a = predicats.gt(0)
     b = predicats.lt(5)
     c = predicats.for_any(a, b, a)
     assert c(10) is True
 def test_one(self):
     a = predicats.gt(0)
     assert a(10) is True
 def test_three(self):
     a = predicats.eq(0)
     b = predicats.gt(10)
     c = a & b
     assert c(-1) is False
 def test_four(self):
     a = predicats.gt(0)
     b = predicats.eq(2)
     c = a | b
     assert ~~c(1) is True
 def test_one(self):
     a = predicats.gt(0)
     b = predicats.lt(5)
     c = a >> b
     assert c(10) is False
Esempio n. 10
0
 def test_two(self):
     a = predicats.gt(0)
     assert ~a(10) is True
Esempio n. 11
0
 def test_three(self):
     a = predicats.eq(0)
     b = predicats.gt(10)
     c = a | b
     assert ~c(-1) is True
Esempio n. 12
0
 def test_two(self):
     a = predicats.oftype(int)
     b = predicats.gt(0)
     c = a | b
     assert c(-10) is True
Esempio n. 13
0
 def test_three(self):
     a = predicats.gt(0)
     assert a(0) is False
Esempio n. 14
0
 def test_four(self):
     a = predicats.gt(0)
     b = predicats.eq(2)
     c = a & b
     assert c(2) is True
Esempio n. 15
0
 def test_three(self):
     a = predicats.gt(0)
     b = predicats.lt(5)
     c = predicats.for_all(a, b)
     assert c(-3) is False
Esempio n. 16
0
 def test_two(self):
     a = predicats.gt(0)
     b = predicats.lt(5)
     c = a >> b
     assert c(3) is True
Esempio n. 17
0
 def test_four(self):
     a = predicats.gt(0)
     b = predicats.lt(-5)
     c = predicats.for_all(a, b)
     assert c(-3) is False
Esempio n. 18
0
 def test_three(self):
     a = predicats.gt(0)
     b = predicats.lt(5)
     c = a >> b
     assert c(-10) is True
Esempio n. 19
0
 def test_two(self):
     a = predicats.gt(0)
     assert a(-10) is False
Esempio n. 20
0
 def test_one(self):
     a = predicats.oftype(int)
     b = predicats.gt(0)
     c = a & b
     assert c(10) is True