Creating a basic view

This commit is contained in:
Zoe Roux
2021-06-03 22:42:38 +02:00
parent 0d37a560d7
commit a11bd21ec3
15 changed files with 121 additions and 63 deletions
+3 -2
View File
@@ -5,6 +5,7 @@
#include <catch2/catch.hpp>
#include <stdexcept>
#include <Wal.hpp>
#include <Scene/Scene.hpp>
#include "Entity/Entity.hpp"
#include "Models/Callback.hpp"
@@ -37,7 +38,7 @@ TEST_CASE("Callback multiple arguments", "[Callback]")
callback.addCallback([](const std::string& str, int a, unsigned *value, Entity &entity) {
throw std::runtime_error("");
});
Wal wal;
Entity entity(wal, "name");
Scene scene;
Entity entity(scene, "name");
REQUIRE_THROWS_AS(callback("1", 0, nullptr, entity), std::runtime_error);
}