コード例 #1
0
ファイル: xor_tests.py プロジェクト: kippr/neato
 def should_give_zero_for_one_and_one(self):
     expect(hand_crafted_xor(1, 1)) == 0
コード例 #2
0
ファイル: xor_tests.py プロジェクト: kippr/neato
 def should_give_one_for_one_and_zero(self):
     expect(hand_crafted_xor(1, 0)) == 1
コード例 #3
0
ファイル: xor_tests.py プロジェクト: kippr/neato
 def should_give_zero_for_zero_and_zero(self):
     expect(hand_crafted_xor(0, 0)) == 0
コード例 #4
0
ファイル: xor_tests.py プロジェクト: kippr/neato
 def should_give_one_for_zero_and_one(self):
     expect(hand_crafted_xor(0, 1)) == 1