<|file_name|>test_is_thue_morse.py<|end_file_name|><｜fim▁begin｜>"""Test."""


import pytest

TM_TABLE = [
    ([0, 1, 1, 0, 1], True),
    ([0], True),
    ([1], False),
    ([0, 1, 0, 0], False),
]


@pytest.mark.parametrize("n, result", TM_TABLE)
def <|fim_middle|>(n, result):
    """Test."""
    from is_thue_morse import is_thue_morse
    assert is_thue_morse(n) == result
<｜fim▁end｜>
test_is_thue_morse