"""Tests for move_zeroes"""

import pytest


TEST_ARRAYS = [
    ([1, 2, 0, 1, 0, 1, 0, 3, 0, 1], [1, 2, 1, 1, 3, 1, 0, 0, 0, 0]),
    ([9, 0.0, 0, 9, 1, 2, 0, 1, 0, 1, 0.0, 3, 0, 1, 9, 0, 0, 0, 0, 9], [9, 9, 1, 2, 1, 1, 3, 1, 9, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]),
    (["a", 0, 0, "b", "c", "d", 0, 1, 0, 1, 0, 3, 0, 1, 9, 0, 0, 0, 0, 9], ["a", "b", "c", "d", 1, 1, 3, 1, 9, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]),
    (["a", 0, 0, "b", None, "c", "d", 0, 1, False, 0, 1, 0, 3, [], 0, 1, 9, 0, 0, {}, 0, 0, 9], ["a", "b", None, "c", "d", 1, False, 1, 3, [], 1, 9, {}, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]),
    ([0, 1, None, 2, False, 1, 0], [1, None, 2, False, 1, 0, 0]),
    (["a", "b"], ["a", "b"]),
    ([0, 0], [0, 0]),
    ([0], [0]),
    ([], [])
]


@pytest.mark.parametrize('array, result', TEST_ARRAYS)
def test_move_zeroes_5kyu(array, result):
    from move_zeroes_5kyu import move_zeroes
    assert move_zeroes(array) == result

"""Tests for move_zeroes"""

import pytest


TEST_ARRAYS = [
    ([1, 2, 0, 1, 0, 1, 0, 3, 0, 1], [1, 2, 1, 1, 3, 1, 0, 0, 0, 0]),
    ([9, 0.0, 0, 9, 1, 2, 0, 1, 0, 1, 0.0, 3, 0, 1, 9, 0, 0, 0, 0, 9], [9, 9, 1, 2, 1, 1, 3, 1, 9, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]),
    (["a", 0, 0, "b", "c", "d", 0, 1, 0, 1, 0, 3, 0, 1, 9, 0, 0, 0, 0, 9], ["a", "b", "c", "d", 1, 1, 3, 1, 9, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]),
    (["a", 0, 0, "b", None, "c", "d", 0, 1, False, 0, 1, 0, 3, [], 0, 1, 9, 0, 0, {}, 0, 0, 9], ["a", "b", None, "c", "d", 1, False, 1, 3, [], 1, 9, {}, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]),
    ([0, 1, None, 2, False, 1, 0], [1, None, 2, False, 1, 0, 0]),
    (["a", "b"], ["a", "b"]),
    ([0, 0], [0, 0]),
    ([0], [0]),
    ([], [])
]


@pytest.mark.parametrize('array, result', TEST_ARRAYS)
def test_move_zeroes_5kyu(array, result):
    from move_zeroes_5kyu import move_zeroes
    assert move_zeroes(array) == result

Tests for move_zeroes