예제 #1
0
 def test2(self):
     a = xor_(identity, not_(identity))
     self.assertTrue(a(True))
예제 #2
0
 def test0(self):
     a = xor_(not_(identity), not_(identity))
     self.assertFalse(a(True))
예제 #3
0
 def test1(self):
     a = xor_(not_(identity), identity)
     self.assertTrue(a(True))
예제 #4
0
 def test1(self):
     a = and_(not_(identity), identity)
     self.assertFalse(a(True))
예제 #5
0
 def test2(self):
     a = and_(identity, not_(identity))
     self.assertFalse(a(True))
예제 #6
0
 def test_positive(self):
     n = not_(identity)
     self.assertTrue(n(False))
예제 #7
0
 def test_negative(self):
     n = not_(identity)
     self.assertFalse(n(True))
예제 #8
0
 def test1(self):
     a = xor_(not_(identity), identity)
     self.assertTrue(a(True))
예제 #9
0
 def test2(self):
     a = xor_(identity, not_(identity))
     self.assertTrue(a(True))
예제 #10
0
 def test0(self):
     a = xor_(not_(identity), not_(identity))
     self.assertFalse(a(True))
예제 #11
0
 def test2(self):
     a = and_(identity, not_(identity))
     self.assertFalse(a(True))
예제 #12
0
 def test1(self):
     a = and_(not_(identity), identity)
     self.assertFalse(a(True))
예제 #13
0
 def test_negative(self):
     n = not_(identity)
     self.assertFalse(n(True))
예제 #14
0
 def test_positive(self):
     n = not_(identity)
     self.assertTrue(n(False))