mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-01 17:55:48 +00:00
Merge branch 'ecs' of github.com:AnonymusRaccoon/Bomberman into ecs
This commit is contained in:
@@ -15,7 +15,7 @@ TEST_CASE("Callback basic test", "[Callback]")
|
||||
|
||||
REQUIRE_NOTHROW(callback("1"));
|
||||
SECTION("Check add") {
|
||||
int id =callback.addCallback([](const std::string& i) {
|
||||
int id = callback.addCallback([](const std::string& i) {
|
||||
if (i == "Super")
|
||||
throw std::runtime_error(i);
|
||||
});
|
||||
@@ -38,4 +38,4 @@ TEST_CASE("Callback multiple arguments", "[Callback]")
|
||||
});
|
||||
Entity entity("name");
|
||||
REQUIRE_THROWS_AS(callback("1", 0, nullptr, entity), std::runtime_error);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user