From: Lukel495 Date: Fri, 8 Dec 2023 11:04:12 +0000 (+0100) Subject: ramverk testfil fungerar: Lukas Alma Malin Stina Nils Arvid X-Git-Url: https://gitweb.forssennils.se/?a=commitdiff_plain;h=b1d5a84c402b9fee2e99dccb41803c2e2692b84a;p=TDDC76_proj.git ramverk testfil fungerar: Lukas Alma Malin Stina Nils Arvid --- diff --git a/src/_test.cc b/src/_test.cc index 2f68f3a..4ed1579 100644 --- a/src/_test.cc +++ b/src/_test.cc @@ -3,30 +3,25 @@ * * All testkod bör köras från denna fil och denna fil enbart. */ +#define CATCH_CONFIG_MAIN +#include "catch.hpp" + #include #include #include #include -#include "catch.hpp" #include "States.h" #include "json.hpp" #include "constants.h" #include "Context.h" - using json = nlohmann::json; -int main() +TEST_CASE("functions") { - return 0; -} - TEST_CASE("functions") - { - - SECTION("Start_menu") - { - + SECTION("Start_menu") + { Context game_context{}; std::ifstream f("assets/data.json"); @@ -34,10 +29,8 @@ int main() game_context.current_state = std::make_unique(data); std::cout << "banenrr" << std::endl; - - } - } +} /* SECTION("Default")