Skip to content

Commit

Permalink
Rename test file names
Browse files Browse the repository at this point in the history
  • Loading branch information
hit9 committed Apr 10, 2024
1 parent a2a9dc3 commit d822bc4
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 29 deletions.
12 changes: 6 additions & 6 deletions tests/simple_condition_test.cc → tests/condition_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "bt.h"
#include "types.h"

TEST_CASE("Simple/Condition/1", "[simplest condition - constructed from template]") {
TEST_CASE("Condition/1", "[simplest condition - constructed from template]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down Expand Up @@ -41,7 +41,7 @@ TEST_CASE("Simple/Condition/1", "[simplest condition - constructed from template
REQUIRE(root.LastStatus() == bt::Status::SUCCESS);
}

TEST_CASE("Simple/Condition/2", "[simplest condition - constructed from lambda]") {
TEST_CASE("Condition/2", "[simplest condition - constructed from lambda]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down Expand Up @@ -73,7 +73,7 @@ TEST_CASE("Simple/Condition/2", "[simplest condition - constructed from lambda]"
REQUIRE(root.LastStatus() == bt::Status::RUNNING);
}

TEST_CASE("Simple/Condition/3", "[simplest condition - if]") {
TEST_CASE("Condition/3", "[simplest condition - if]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down Expand Up @@ -114,7 +114,7 @@ TEST_CASE("Simple/Condition/3", "[simplest condition - if]") {
REQUIRE(root.LastStatus() == bt::Status::FAILURE);
}

TEST_CASE("Simple/Condition/4", "[simplest condition - and]") {
TEST_CASE("Condition/4", "[simplest condition - and]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down Expand Up @@ -146,7 +146,7 @@ TEST_CASE("Simple/Condition/4", "[simplest condition - and]") {
REQUIRE(root.LastStatus() == bt::Status::SUCCESS);
}

TEST_CASE("Simple/Condition/5", "[simplest condition - or]") {
TEST_CASE("Condition/5", "[simplest condition - or]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down Expand Up @@ -184,7 +184,7 @@ TEST_CASE("Simple/Condition/5", "[simplest condition - or]") {
REQUIRE(root.LastStatus() == bt::Status::SUCCESS);
}

TEST_CASE("Simple/Condition/6", "[simplest condition - not]") {
TEST_CASE("Condition/6", "[simplest condition - not]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down
2 changes: 1 addition & 1 deletion tests/simple_delay_test.cc → tests/delay_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

using namespace std::chrono_literals;

TEST_CASE("Simple/Delay/1", "[simple delay]") {
TEST_CASE("Delay/1", "[simple delay]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down
4 changes: 2 additions & 2 deletions tests/simple_invert_test.cc → tests/invert_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "bt.h"
#include "types.h"

TEST_CASE("Simple/Invert/1", "[invert once]") {
TEST_CASE("Invert/1", "[invert once]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down Expand Up @@ -31,7 +31,7 @@ TEST_CASE("Simple/Invert/1", "[invert once]") {
REQUIRE(root.LastStatus() == bt::Status::FAILURE);
}

TEST_CASE("Simple/Invert/2", "[invert twice]") {
TEST_CASE("Invert/2", "[invert twice]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down
8 changes: 4 additions & 4 deletions tests/simple_parallel_test.cc → tests/parallel_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "bt.h"
#include "types.h"

TEST_CASE("Simple/Parallel/1", "[all success]") {
TEST_CASE("Parallel/1", "[all success]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down Expand Up @@ -51,7 +51,7 @@ TEST_CASE("Simple/Parallel/1", "[all success]") {
REQUIRE(root.LastStatus() == bt::Status::SUCCESS);
}

TEST_CASE("Simple/Parallel/2", "[partial success (2nd failure)]") {
TEST_CASE("Parallel/2", "[partial success (2nd failure)]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down Expand Up @@ -99,7 +99,7 @@ TEST_CASE("Simple/Parallel/2", "[partial success (2nd failure)]") {
REQUIRE(root.LastStatus() == bt::Status::FAILURE);
}

TEST_CASE("Simple/Parallel/3", "[partial success (1st failure)]") {
TEST_CASE("Parallel/3", "[partial success (1st failure)]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down Expand Up @@ -136,7 +136,7 @@ TEST_CASE("Simple/Parallel/3", "[partial success (1st failure)]") {
REQUIRE(root.LastStatus() == bt::Status::FAILURE);
}

TEST_CASE("Simple/Parallel/4", "[all failure]") {
TEST_CASE("Parallel/4", "[all failure]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down
2 changes: 1 addition & 1 deletion tests/simple_repeat_test.cc → tests/repeat_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "bt.h"
#include "types.h"

TEST_CASE("Simple/Repeat/1", "[simple repeat]") {
TEST_CASE("Repeat/1", "[simple repeat]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down
8 changes: 4 additions & 4 deletions tests/simple_retry_test.cc → tests/retry_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

using namespace std::chrono_literals;

TEST_CASE("Simple/Retry/1", "[simple retry success]") {
TEST_CASE("Retry/1", "[simple retry success]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand All @@ -30,7 +30,7 @@ TEST_CASE("Simple/Retry/1", "[simple retry success]") {
REQUIRE(root.LastStatus() == bt::Status::SUCCESS);
}

TEST_CASE("Simple/Retry/2", "[simple retry final failure]") {
TEST_CASE("Retry/2", "[simple retry final failure]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down Expand Up @@ -69,7 +69,7 @@ TEST_CASE("Simple/Retry/2", "[simple retry final failure]") {
REQUIRE(root.LastStatus() == bt::Status::FAILURE);
}

TEST_CASE("Simple/Retry/3", "[simple retry final success ]") {
TEST_CASE("Retry/3", "[simple retry final success ]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down Expand Up @@ -99,7 +99,7 @@ TEST_CASE("Simple/Retry/3", "[simple retry final success ]") {
REQUIRE(root.LastStatus() == bt::Status::SUCCESS);
}

TEST_CASE("Simple/Retry/4", "[simple retry forever ]") {
TEST_CASE("Retry/4", "[simple retry forever ]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down
6 changes: 3 additions & 3 deletions tests/simple_selector_test.cc → tests/selector_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "bt.h"
#include "types.h"

TEST_CASE("Simple/Selector/1", "[first success]") {
TEST_CASE("Selector/1", "[first success]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down Expand Up @@ -51,7 +51,7 @@ TEST_CASE("Simple/Selector/1", "[first success]") {
REQUIRE(root.LastStatus() == bt::Status::SUCCESS);
}

TEST_CASE("Simple/Selector/2", "[first failure and second success]") {
TEST_CASE("Selector/2", "[first failure and second success]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down Expand Up @@ -100,7 +100,7 @@ TEST_CASE("Simple/Selector/2", "[first failure and second success]") {
REQUIRE(root.LastStatus() == bt::Status::SUCCESS);
}

TEST_CASE("Simple/Selector/3", "[all failure]") {
TEST_CASE("Selector/3", "[all failure]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down
6 changes: 3 additions & 3 deletions tests/simple_sequence_test.cc → tests/sequence_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "bt.h"
#include "types.h"

TEST_CASE("Simple/Sequence/1", "[all success]") {
TEST_CASE("Sequence/1", "[all success]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down Expand Up @@ -57,7 +57,7 @@ TEST_CASE("Simple/Sequence/1", "[all success]") {
REQUIRE(root.LastStatus() == bt::Status::SUCCESS);
}

TEST_CASE("Simple/Sequence/2", "[partial failure - first failure]") {
TEST_CASE("Sequence/2", "[partial failure - first failure]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down Expand Up @@ -92,7 +92,7 @@ TEST_CASE("Simple/Sequence/2", "[partial failure - first failure]") {
REQUIRE(root.LastStatus() == bt::Status::FAILURE);
}

TEST_CASE("Simple/Sequence/3", "[partial failure - last failure]") {
TEST_CASE("Sequence/3", "[partial failure - last failure]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down
2 changes: 1 addition & 1 deletion tests/simple_subtree_test.cc → tests/subtree_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "bt.h"
#include "types.h"

TEST_CASE("Simple/SubTree/1", "[subtree test]") {
TEST_CASE("SubTree/1", "[subtree test]") {
bt::Tree root, subtree;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "bt.h"
#include "types.h"

TEST_CASE("Simple/SwitchCase/1", "[simplest switch/case]") {
TEST_CASE("SwitchCase/1", "[simplest switch/case]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down
6 changes: 3 additions & 3 deletions tests/simple_timeout_test.cc → tests/timeout_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

using namespace std::chrono_literals;

TEST_CASE("Simple/Timeout/1", "[simple timeout success]") {
TEST_CASE("Timeout/1", "[simple timeout success]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand All @@ -30,7 +30,7 @@ TEST_CASE("Simple/Timeout/1", "[simple timeout success]") {
REQUIRE(root.LastStatus() == bt::Status::SUCCESS);
}

TEST_CASE("Simple/Timeout/2", "[simple timeout failure]") {
TEST_CASE("Timeout/2", "[simple timeout failure]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand All @@ -54,7 +54,7 @@ TEST_CASE("Simple/Timeout/2", "[simple timeout failure]") {
REQUIRE(root.LastStatus() == bt::Status::FAILURE);
}

TEST_CASE("Simple/Timeout/3", "[simple timeout timedout]") {
TEST_CASE("Timeout/3", "[simple timeout timedout]") {
bt::Tree root;
auto bb = std::make_shared<Blackboard>();
bt::Context ctx(bb);
Expand Down

0 comments on commit d822bc4

Please sign in to comment.