*
* All testkod bör köras från denna fil och denna fil enbart.
*/
+#define CATCH_CONFIG_MAIN
+#include "catch.hpp"
+
#include <fstream>
#include <memory>
#include <iostream>
#include <SFML/Graphics.hpp>
-#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");
game_context.current_state = std::make_unique<Start_menu>(data);
std::cout << "banenrr" << std::endl;
-
- }
-
}
+}
/*
SECTION("Default")