# Exam 2 tests - sixes_to (5 of 20 points)

import pytest
from exam2 import sixes_to

@pytest.mark.parametrize("n, expected", [
    (1, 0),
    (6, 1),
    (18, 1),
    (60, 2),
    (66, 3),
    (156, 6),
    (600, 20),
    (9006, 301),
    (4230, 141),
    (123456, 4116),
])

def test_sixes_to(n, expected):
    assert sixes_to(n) == expected

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