diff --git a/day03/tests/test_input.txt b/day03/tests/test_input.txt new file mode 100644 index 00000000..b20187f3 --- /dev/null +++ b/day03/tests/test_input.txt @@ -0,0 +1,10 @@ +467..114.. +...*...... +..35..633. +......#... +617*...... +.....+.58. +..592..... +......755. +...$.*.... +.664.598.. diff --git a/day03/tests/tests.sh b/day03/tests/tests.sh new file mode 100644 index 00000000..82842a37 --- /dev/null +++ b/day03/tests/tests.sh @@ -0,0 +1,8 @@ +#!/bin/bash +cd "$(dirname "$0")" + +source ../../test_utils/run_test.sh + +echo "Running tests for day03" +run_test "part1" "./test_input.txt" "../main.c" "Part 1: 4361" +run_test "part1" "./test_input.txt" "../main.c" "Part 2: 467835" \ No newline at end of file