From: Lukel495 Date: Fri, 8 Dec 2023 10:15:09 +0000 (+0100) Subject: skapa startmeny i test X-Git-Url: https://gitweb.forssennils.se/?a=commitdiff_plain;h=4fee6dc5726e66145a40f3d871f93faa411043f5;p=TDDC76_proj.git skapa startmeny i test --- diff --git a/src/_test.cc b/src/_test.cc index faf3ec9..4fed3a6 100644 --- a/src/_test.cc +++ b/src/_test.cc @@ -3,15 +3,23 @@ * * All testkod bör köras från denna fil och denna fil enbart. */ +#include #include // includes most things in SFML - #include "catch.hpp" +#include "states.h" +#include "json.hpp" -using namespace std; +using json = nlohmann::json; -TEST_CASE("Constructors") +TEST_CASE("functions") { + SECTION("Start_menu") + { + std::ifstream f("assets/data.json"); + json data = json::parse(f); + CHECK(std::make_unique(data)); + } /*