Files
095-assignment-space-invaders/tests/test_constants.py
2026-11-21 17:32:24 +08:00

17 lines
354 B
Python

"""Tests of the game constants."""
import constants
def test_screen_is_larger_than_zero() -> None:
assert constants.SCREEN_WIDTH > 0
assert constants.SCREEN_HEIGHT > 0
def test_title_is_set() -> None:
assert constants.SCREEN_TITLE == "Space Invaders"
def test_frame_delay_is_positive() -> None:
assert constants.FRAME_DELAY_MS > 0