コード例 #1
0
 def test_two(self):
     a = predicats.gt(0)
     b = predicats.lt(5)
     c = predicats.for_all(a, b, a)
     assert c(10) is False
コード例 #2
0
 def test_four(self):
     a = predicats.gt(0)
     b = predicats.lt(5)
     c = predicats.for_any(a, b)
     assert c(-10) is True
コード例 #3
0
 def test_one(self):
     a = predicats.gt(0)
     b = predicats.lt(5)
     c = predicats.for_all(a, b)
     assert c(3) is True
コード例 #4
0
 def test_four(self):
     a = predicats.gt(0)
     b = predicats.lt(-5)
     c = a >> b
     assert c(-2) is True
コード例 #5
0
 def test_two(self):
     a = predicats.gt(0)
     b = predicats.lt(5)
     c = predicats.for_any(a, b, a)
     assert c(10) is True
コード例 #6
0
 def test_one(self):
     a = predicats.gt(0)
     assert a(10) is True
コード例 #7
0
 def test_three(self):
     a = predicats.eq(0)
     b = predicats.gt(10)
     c = a & b
     assert c(-1) is False
コード例 #8
0
 def test_four(self):
     a = predicats.gt(0)
     b = predicats.eq(2)
     c = a | b
     assert ~~c(1) is True
コード例 #9
0
 def test_one(self):
     a = predicats.gt(0)
     b = predicats.lt(5)
     c = a >> b
     assert c(10) is False
コード例 #10
0
 def test_two(self):
     a = predicats.gt(0)
     assert ~a(10) is True
コード例 #11
0
 def test_three(self):
     a = predicats.eq(0)
     b = predicats.gt(10)
     c = a | b
     assert ~c(-1) is True
コード例 #12
0
 def test_two(self):
     a = predicats.oftype(int)
     b = predicats.gt(0)
     c = a | b
     assert c(-10) is True
コード例 #13
0
 def test_three(self):
     a = predicats.gt(0)
     assert a(0) is False
コード例 #14
0
 def test_four(self):
     a = predicats.gt(0)
     b = predicats.eq(2)
     c = a & b
     assert c(2) is True
コード例 #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
コード例 #16
0
 def test_two(self):
     a = predicats.gt(0)
     b = predicats.lt(5)
     c = a >> b
     assert c(3) is True
コード例 #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
コード例 #18
0
 def test_three(self):
     a = predicats.gt(0)
     b = predicats.lt(5)
     c = a >> b
     assert c(-10) is True
コード例 #19
0
 def test_two(self):
     a = predicats.gt(0)
     assert a(-10) is False
コード例 #20
0
 def test_one(self):
     a = predicats.oftype(int)
     b = predicats.gt(0)
     c = a & b
     assert c(10) is True