Skip to content

Commit

Permalink
UnitTests Changed some REQUIRE() checks to REQUIRE_FALSE() 11/24/2024…
Browse files Browse the repository at this point in the history
… | 24w47b2
  • Loading branch information
GamesTrap committed Nov 24, 2024
1 parent 10f5952 commit 55c95f6
Show file tree
Hide file tree
Showing 9 changed files with 368 additions and 367 deletions.
1 change: 1 addition & 0 deletions SITREPS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5421,3 +5421,4 @@ SITREP 11/24/2024|24w47b2
- Changed TRAP Engine version to 24w47b2(0.11.47)
- UnitTests Added tests for TRAP::Utils::LockFreeQueue ~<15 mins
- UnitTests Added tests for TRAP::Utils::Safe ~<30 mins
- UnitTests Changed some REQUIRE() checks to REQUIRE_FALSE() ~<15 mins
4 changes: 2 additions & 2 deletions UnitTests/src/Events/HotReloadEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ TEST_CASE("TRAP::Events::TextureReloadEvent", "[events][texturereloadevent]")

const TRAP::Events::TextureReloadEvent tevent1 = TRAP::Events::TextureReloadEvent{nullptr};

REQUIRE(tevent1.GetTexture() == nullptr);
REQUIRE_FALSE(tevent1.GetTexture());
}

SECTION("GetStaticType()")
Expand Down Expand Up @@ -113,7 +113,7 @@ TEST_CASE("TRAP::Events::ShaderReloadEvent", "[events][shaderreloadevent]")

const TRAP::Events::ShaderReloadEvent sevent1 = TRAP::Events::ShaderReloadEvent{nullptr};

REQUIRE(sevent1.GetShader() == nullptr);
REQUIRE_FALSE(sevent1.GetShader());
}

SECTION("GetStaticType()")
Expand Down
Loading

0 comments on commit 55c95f6

Please sign in to comment.