diff options
author | kaiwu <kaiwu2004@gmail.com> | 2022-12-08 11:41:21 +0800 |
---|---|---|
committer | kaiwu <kaiwu2004@gmail.com> | 2022-12-08 11:41:21 +0800 |
commit | 2aef63bbb79fc39031b23473f8949724b6af0f1e (patch) | |
tree | 66d88c64c7cf99d55bfc0c472d010bdf49663099 /test/test_2015.cpp | |
parent | 5eb95d08e5d8947ca4d2c1521607c917b8ac9daa (diff) | |
download | advent-of-code-2aef63bbb79fc39031b23473f8949724b6af0f1e.tar.gz advent-of-code-2aef63bbb79fc39031b23473f8949724b6af0f1e.zip |
2015 day22 part1
Diffstat (limited to 'test/test_2015.cpp')
-rw-r--r-- | test/test_2015.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_2015.cpp b/test/test_2015.cpp index 74d6c25..eceef29 100644 --- a/test/test_2015.cpp +++ b/test/test_2015.cpp @@ -224,4 +224,12 @@ TEST_CASE("RPG Simulator 20XX", "[2015]") { } TEST_CASE("Wizard Simulator 20XX", "[2015]") { + aoc2015::wizard me; + me.points = 50; + me.mana = 500; + + aoc2015::wizard boss; + boss.points = 55; + auto p = aoc2015::day22(me, boss); + REQUIRE(0 == p.first); } |