* All testkod bör köras från denna fil och denna fil enbart.
*/
#include <fstream>
+#include <memory>
+#include <iostream>
+#include <SFML/Graphics.hpp>
-#include <SFML/Graphics.hpp> // includes most things in SFML
#include "catch.hpp"
-#include "states.h"
+#include "States.h"
#include "json.hpp"
+#include "constants.h"
+#include "Context.h"
+
using json = nlohmann::json;
-TEST_CASE("functions")
-{
- SECTION("Start_menu")
- {
- std::ifstream f("assets/data.json");
- json data = json::parse(f);
- CHECK(std::make_unique<Start_menu>(data));
- }
+int main()
+{
+ return 0;
+}
+ TEST_CASE("functions")
+ {
+
+ SECTION("Start_menu")
+ {
+
+ Context game_context{};
+ std::ifstream f("assets/data.json");
+ json data = json::parse(f);
+ game_context.current_state = std::make_unique<Start_menu>(data);
+
+ std::cout << "banenrr" << std::endl;
+
+ }
+
+ }
/*
SECTION("Default")
CHECK(empty.to_string() == "[5]");
}*/
-}
\ No newline at end of file