Files
Tirsvad 5ebc1df94a Set up the project skeleton, tooling and documentation
Adds pyproject.toml, .gitignore, constants.py, the layer packages, a smoke
test, the Doxyfile and the README with venv, run and test instructions.

Task: MIL-001#1
Task: MIL-001#2
Task: MIL-001#3
Task: MIL-001#4
Task: MIL-001#5
Task: MIL-001#6
2026-11-06 12:21:57 +08:00

22 lines
542 B
Python

"""Tests of the project constants."""
from higher_lower import constants
def test_range_is_ordered() -> None:
assert constants.MIN_NUMBER < constants.MAX_NUMBER
def test_home_heading_names_the_range() -> None:
assert str(constants.MIN_NUMBER) in constants.HOME_HEADING
assert str(constants.MAX_NUMBER) in constants.HOME_HEADING
def test_answer_colours_are_different() -> None:
colours = {
constants.LOW_COLOUR,
constants.HIGH_COLOUR,
constants.CORRECT_COLOUR,
}
assert len(colours) == 3