diff options
author | kaiwu <kaiwu2004@gmail.com> | 2022-03-23 08:48:34 +0800 |
---|---|---|
committer | kaiwu <kaiwu2004@gmail.com> | 2022-03-23 08:48:34 +0800 |
commit | ec0f202ae25905739d40a152e05d8393af0b4ea6 (patch) | |
tree | a780fa7ea74a5f07bdcdb3696952f099e3b2d286 /test/test_2015.cpp | |
parent | 6c4f0e193314b179f9ffb81b00c1b36c69e3e430 (diff) | |
download | advent-of-code-ec0f202ae25905739d40a152e05d8393af0b4ea6.tar.gz advent-of-code-ec0f202ae25905739d40a152e05d8393af0b4ea6.zip |
day19 part2
Diffstat (limited to 'test/test_2015.cpp')
-rw-r--r-- | test/test_2015.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/test_2015.cpp b/test/test_2015.cpp index 12afca7..5906826 100644 --- a/test/test_2015.cpp +++ b/test/test_2015.cpp @@ -201,7 +201,9 @@ TEST_CASE("Like a GIF For Your Yard", "[day18]") { } TEST_CASE("Medicine for Rudolph", "[day19]") { - line_view lv = load_file("../src/2015/day19/input"); - // line_view lv = line_view{"H => HO\nH => OH\nO => HH\n\nHOH\n"}; - REQUIRE(509 == aoc2015::day19(lv)); + // line_view lv = load_file("../src/2015/day19/input"); + line_view lv = line_view{"e => H\ne => O\nH => HO\nH => OH\nO => HH\n\nHOHOHO\n"}; + auto p = aoc2015::day19(lv); + // REQUIRE(509 == p.first); + REQUIRE(0 == p.second); } |