From b1d5a84c402b9fee2e99dccb41803c2e2692b84a Mon Sep 17 00:00:00 2001 From: Lukel495 Date: Fri, 8 Dec 2023 12:04:12 +0100 Subject: [PATCH] ramverk testfil fungerar: Lukas Alma Malin Stina Nils Arvid --- src/_test.cc | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) 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") -- 2.30.2