*
* All testkod bör köras från denna fil och denna fil enbart.
*/
+#include <fstream>
#include <SFML/Graphics.hpp> // 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<Start_menu>(data));
+ }
/*