From 577bc93d6d2fa2645a121c7c454248d8a663a8b6 Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Sat, 19 Mar 2022 08:33:01 +0100 Subject: Move all uwu-related code to its own header, and create a few dont-crash tests awso fixed stwing-out-of-range bug. --- Test/HappyPath.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Test/HappyPath.cpp (limited to 'Test/HappyPath.cpp') 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 +#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"); } +} -- cgit v1.2.3