summaryrefslogtreecommitdiffstats
path: root/Test/HappyPath.cpp
diff options
context:
space:
mode:
authorLeonetienne <leonetienne@hotmail.de>2022-03-19 08:33:01 +0100
committerLeonetienne <leonetienne@hotmail.de>2022-03-19 08:47:54 +0100
commit577bc93d6d2fa2645a121c7c454248d8a663a8b6 (patch)
treecb1c5099bdb70ef7f809be7af8550830e594ec07 /Test/HappyPath.cpp
parentb172ec9ee901d95bdd959665399a87ff033ed9a9 (diff)
Move all uwu-related code to its own header, and create a few dont-crash tests
awso fixed stwing-out-of-range bug.
Diffstat (limited to 'Test/HappyPath.cpp')
-rw-r--r--Test/HappyPath.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/Test/HappyPath.cpp b/Test/HappyPath.cpp
new file mode 100644
index 0000000..7ed31f0
--- /dev/null
+++ b/Test/HappyPath.cpp
@@ -0,0 +1,17 @@
+#include <LibUwu.h>
+#include "Catch2.h"
+
+// Tests that the program doesnt crash with random input
+TEST_CASE(__FILE__"/DoesntCrash", "[]")
+{
+ SECTION("0") { MakeUwu("nine"); }
+ SECTION("1") { MakeUwu("nintendo"); }
+ SECTION("2") { MakeUwu("one"); }
+ SECTION("3") { MakeUwu("rally"); }
+ SECTION("4") { MakeUwu("lary"); }
+ SECTION("5") { MakeUwu("larry"); }
+ SECTION("6") { MakeUwu("wally"); }
+ SECTION("7") { MakeUwu("waly"); }
+ SECTION("8") { MakeUwu("gardener"); }
+ SECTION("9") { MakeUwu("german"); }
+}