# Prac 4 - length_order tests
import pytest

import prac4

test_cases = [
        (("a", "aa"), ("a", "aa")),
        (("abc", "de"), ("de", "abc")),
        (("tortoise", "hare"), ("hare", "tortoise")),
        (("empty", ""), ("", "empty")),
        (("abc", "def"), ("abc", "def")),
        (("cat", "bag"), ("bag", "cat"))
]

@pytest.mark.parametrize("args, result", test_cases)
def test_length_order(args, result):
    assert prac4.length_order(*args) == result


if __name__ == "__main__":
    pytest.main(["length_order_test.py", "-vv",  "-p", "no:faulthandler"])
