Skip to content

Commit

Permalink
minor improvement test
Browse files Browse the repository at this point in the history
  • Loading branch information
hit9 committed Apr 23, 2024
1 parent 659faba commit 6f34ad9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/blob_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ TEST_CASE("Blob/1", "[simple tree blob test]") {

auto q = blob.GetOrAllocate<CustomNodeBlob>(2);
REQUIRE(q != nullptr);
REQUIRE(!q->running);
auto p3 = blob.GetOrAllocate<CustomNodeBlob>(2);
REQUIRE(p3 == q);
REQUIRE(p3->x == 0);
Expand Down
5 changes: 3 additions & 2 deletions tests/delay_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ TEST_CASE("Delay/1", "[simple delay]") {
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);

Entity e;

// clang-format off
root
.Delay(100ms)
Expand All @@ -21,6 +19,9 @@ TEST_CASE("Delay/1", "[simple delay]") {
;
// clang-format on

Entity e;

REQUIRE(bb->counterA == 0);
// Tick#1: A is not started.
root.BindTreeBlob(e.blob);
root.Tick(ctx);
Expand Down

0 comments on commit 6f34ad9

Please sign in to comment.