Now mostly working with GUECS but shaders are still busted. Have to find out why they stopped working.
This commit is contained in:
parent
a5f6a82611
commit
ac22a11c9f
27 changed files with 162 additions and 1210 deletions
|
@ -1,39 +0,0 @@
|
|||
#include <catch2/catch_test_macros.hpp>
|
||||
#include "dbc.hpp"
|
||||
|
||||
using namespace dbc;
|
||||
|
||||
TEST_CASE("basic feature tests", "[utils]") {
|
||||
log("Logging a message.");
|
||||
|
||||
try {
|
||||
sentinel("This shouldn't happen.");
|
||||
} catch(SentinelError) {
|
||||
log("Sentinel happened.");
|
||||
}
|
||||
|
||||
pre("confirm positive cases work", 1 == 1);
|
||||
pre("confirm positive lambda", [&]{ return 1 == 1;});
|
||||
post("confirm positive post", 1 == 1);
|
||||
post("confirm postitive post with lamdba", [&]{ return 1 == 1;});
|
||||
|
||||
check(1 == 1, "one equals 1");
|
||||
|
||||
try {
|
||||
check(1 == 2, "this should fail");
|
||||
} catch(CheckError err) {
|
||||
log("check fail worked");
|
||||
}
|
||||
|
||||
try {
|
||||
pre("failing pre", 1 == 3);
|
||||
} catch(PreCondError err) {
|
||||
log("pre fail worked");
|
||||
}
|
||||
|
||||
try {
|
||||
post("failing post", 1 == 4);
|
||||
} catch(PostCondError err) {
|
||||
log("post faile worked");
|
||||
}
|
||||
}
|
|
@ -6,7 +6,7 @@ using namespace fmt;
|
|||
|
||||
TEST_CASE("game engine death cycle", "[game_engine]") {
|
||||
// test fails on purpose right now
|
||||
GameEngine game{4};
|
||||
GameEngine game{4, 4};
|
||||
|
||||
for(int i = 0; i < 4; i++) {
|
||||
game.event(GameEvent::BUILD_START);
|
||||
|
@ -36,7 +36,7 @@ TEST_CASE("game engine death cycle", "[game_engine]") {
|
|||
}
|
||||
|
||||
TEST_CASE("game can do success build", "[game_engine]") {
|
||||
GameEngine game{10};
|
||||
GameEngine game{10, 10};
|
||||
|
||||
// test fails on purpose right now
|
||||
for(int i = 0; i < 10; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue