#!/usr/bin/env python3

try:
    from iotest import run_assignment_tests
except ImportError:
    print("❌ Error: Could not find the 'iotest' module.")
    print("Please make sure 'iotest.py' is in the same directory as this test file and your solution program.")
    exit(1)

test_cases = [
    {"args": ["0", "0", "0"], "expected_output": "0"},
    {"args": ["0", "0", "1"], "expected_output": "1"},
    {"args": ["0", "1", "0"], "expected_output": "2"},
    {"args": ["0", "1", "1"], "expected_output": "3"},
    {"args": ["1", "0", "0"], "expected_output": "4"},
    {"args": ["1", "0", "1"], "expected_output": "5"},
    {"args": ["1", "1", "0"], "expected_output": "6"},
    {"args": ["1", "1", "1"], "expected_output": "7"},
]

if __name__ == "__main__":
    run_assignment_tests("p1.py", test_cases)