diff options
author | Kai WU <kaiwu2004@gmail.com> | 2022-03-17 23:13:18 +0800 |
---|---|---|
committer | Kai WU <kaiwu2004@gmail.com> | 2022-03-17 23:13:18 +0800 |
commit | 2f44c63c1d31e20fbb848568a53c09823f54a329 (patch) | |
tree | bf61fb3eb3841068baf5b79e3af1e4e5c9b1dc83 /test | |
parent | 29b341616a344ee89a776b3031353643b33afb58 (diff) | |
download | advent-of-code-2f44c63c1d31e20fbb848568a53c09823f54a329.tar.gz advent-of-code-2f44c63c1d31e20fbb848568a53c09823f54a329.zip |
cache compute
Diffstat (limited to 'test')
-rw-r--r-- | test/test_2015.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_2015.cpp b/test/test_2015.cpp index 159e36b..94f5cca 100644 --- a/test/test_2015.cpp +++ b/test/test_2015.cpp @@ -90,6 +90,7 @@ TEST_CASE("Probably a Fire Hazard", "[day6]") { } TEST_CASE("Some Assembly Required", "[day 7]") { + /* aoc2015::cals cals; cals.parse("1 -> ab"); cals.parse("8 RSHIFT ab -> x"); @@ -101,4 +102,9 @@ TEST_CASE("Some Assembly Required", "[day 7]") { REQUIRE(16 == cals.compute("ac").value); REQUIRE(17 == cals.compute("ae").value); REQUIRE(65531 == cals.compute("f").value); + */ + + line_view lv = load_file("../src/2015/day7/input"); + auto r = aoc2015::day7(lv, "a"); + REQUIRE(3176 == r.value); } |