Exemple #1
0
 def should_give_zero_for_one_and_one(self):
     expect(hand_crafted_xor(1, 1)) == 0
Exemple #2
0
 def should_give_one_for_one_and_zero(self):
     expect(hand_crafted_xor(1, 0)) == 1
Exemple #3
0
 def should_give_zero_for_zero_and_zero(self):
     expect(hand_crafted_xor(0, 0)) == 0
Exemple #4
0
 def should_give_one_for_zero_and_one(self):
     expect(hand_crafted_xor(0, 1)) == 1