Esempio n. 1
0
    def test_even(self):
        things = [
            True,
            True,
            False,
            False,
            False,
        ]

        assert not bools.xor(*things)
Esempio n. 2
0
    def test_even(self):
        things = [
            True,
            True,
            False,
            False,
            False,
        ]

        T.assert_equal(bools.xor(*things), False)
Esempio n. 3
0
    def test_odd(self):
        things = [
            True,
            True,
            True,
            False,
            False,
            False,
            False,
        ]

        assert bools.xor(*things)
Esempio n. 4
0
    def test_even(self):
        things = [True, True, False, False, False]

        assert not bools.xor(*things)
Esempio n. 5
0
    def test_odd(self):
        things = [True, True, True, False, False, False, False]

        assert bools.xor(*things)