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