aboutsummaryrefslogtreecommitdiff
path: root/test/test_2015.cpp
diff options
context:
space:
mode:
authorkaiwu <kaiwu2004@gmail.com>2022-12-08 11:41:21 +0800
committerkaiwu <kaiwu2004@gmail.com>2022-12-08 11:41:21 +0800
commit2aef63bbb79fc39031b23473f8949724b6af0f1e (patch)
tree66d88c64c7cf99d55bfc0c472d010bdf49663099 /test/test_2015.cpp
parent5eb95d08e5d8947ca4d2c1521607c917b8ac9daa (diff)
downloadadvent-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.cpp8
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);
}