Example #1
0
def main():
    print "My application starts..."
    a = 2
    b = 3
    x = True
    y = False
    print add(a, b)
    print mul(a, b)
    print and_(x, y)
    print or_(x, y)
Example #2
0
def main():
        print "debut"
        a=2
        b=3
        x=True
        y=False
        print add(a,b)
        print nul(a,b)
        print and_(a,b)
        print or_(a,b)
        print or_(x,y)
Example #3
0
 def test_and_(self):
     self.assertEquals(logic.and_(True, False), False)
Example #4
0
 def test_and(self):
     self.assertEquals(logic.and_(0,1),0)
Example #5
0
 def test_and(self):
     self.assertEquals(logic.and_(True,True), True)