-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add tests for day12 * set C standard to C99 when compile for test * remove day12 test * run on ubuntu * add day12 back in * add newline * simplify day17 tests * add -e * add -e another place * simplify test case to check if it is a memory issue * make testcase a bit better * revert changes to day12/main.c
- Loading branch information
1 parent
d62eff2
commit 08af5c7
Showing
5 changed files
with
15 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
???.### 1,1,3 | ||
.??..??...?##. 1,1,3 | ||
?#?#?#?#?#?#?#? 1,3,1,6 | ||
????.#...#... 4,1,1 | ||
????.######..#####. 1,6,5 | ||
?###???????? 3,2,1 | ||
.??..??...?##. 1,1,3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
set -e | ||
cd "$(dirname "$0")" | ||
|
||
source ../../test_utils/run_test.sh | ||
|
||
echo "Running tests for day12" | ||
run_test "part1" "./test_input.txt" "../main.c" "Part1 sol: 5" | ||
run_test "part2" "./test_input.txt" "../main.c" "Part2 sol: 16385" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
set -e | ||
cd "$(dirname "$0")" | ||
|
||
source ../../test_utils/run_test.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
#!/bin/bash | ||
set -e | ||
cd "$(dirname "$0")" | ||
|
||
source ../../test_utils/run_test.sh | ||
|
||
echo "Running tests for day17" | ||
if ! run_test "part1" "./test_input.txt" "../main.c" "Part1 sol: 102"; then | ||
exit 1 | ||
fi | ||
if ! run_test "part2" "./test_input.txt" "../main.c" "Part2 sol: 94"; then | ||
exit 1 | ||
fi | ||
|
||
run_test "part1" "./test_input.txt" "../main.c" "Part1 sol: 102" | ||
run_test "part2" "./test_input.txt" "../main.c" "Part2 sol: 94" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters