示例#1
0
    def test_even(self):
        things = [
            True,
            True,
            False,
            False,
            False,
        ]

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

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

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

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

        assert bools.xor(*things)