Skip to content

Commit

Permalink
add tests for day03
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-mcinally committed Jan 28, 2024
1 parent d05556a commit 4d7e069
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions day03/tests/test_input.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
467..114..
...*......
..35..633.
......#...
617*......
.....+.58.
..592.....
......755.
...$.*....
.664.598..
8 changes: 8 additions & 0 deletions day03/tests/tests.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 4d7e069

Please sign in to comment.