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

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

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

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

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

        assert bools.xor(*things)