aboutsummaryrefslogtreecommitdiff
path: root/comp6771/1/src/word_ladder_benchmark.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'comp6771/1/src/word_ladder_benchmark.test.cpp')
-rw-r--r--comp6771/1/src/word_ladder_benchmark.test.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/comp6771/1/src/word_ladder_benchmark.test.cpp b/comp6771/1/src/word_ladder_benchmark.test.cpp
new file mode 100644
index 0000000..2a512d5
--- /dev/null
+++ b/comp6771/1/src/word_ladder_benchmark.test.cpp
@@ -0,0 +1,11 @@
+#include <catch2/catch.hpp>
+
+#include "word_ladder.h"
+
+TEST_CASE("atlases -> cabaret") {
+ const auto english_lexicon = word_ladder::read_lexicon("./english.txt");
+ const auto ladders =
+ word_ladder::generate("atlases", "cabaret", english_lexicon);
+
+ CHECK(std::size(ladders) != 0);
+}