mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-23 06:48:15 +00:00
Creating a basic view
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user