Skip to content

Commit

Permalink
update test data
Browse files Browse the repository at this point in the history
  • Loading branch information
CrustyAuklet committed May 11, 2024
1 parent 7eea8ea commit e2cc082
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ Matching test cases:
test SECTION
test multiple SECTION
test SECTION & INFO
42 matching test cases
8 changes: 4 additions & 4 deletions tests/runtime_tests/registry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,10 +583,9 @@ TEST_CASE("list tests", "[registry]") {
CAPTURE(tag);
console.messages.clear();

const auto header = "Matching test cases:\n"sv;

framework.registry.list_tests_with_tag(tag);
CHECK(console.messages == contains_substring(header));
CHECK(console.messages == contains_substring("Matching test cases:"));
CHECK(console.messages == contains_substring("matching test cases"));
if (tag == "[tag]"sv) {
CHECK(console.messages == contains_substring("how are you"));
CHECK(console.messages == contains_substring("how many lights"));
Expand Down Expand Up @@ -621,7 +620,8 @@ TEST_CASE("list tests", "[registry]") {
CHECK(console.messages == contains_substring("how many templated lights"));
CHECK(console.messages == contains_substring("hidden test 1"));
} else if (tag == "[wrong_tag]"sv || tag == "[.hidden]"sv) {
CHECK(console.messages == header);
const auto no_tests = "Matching test cases:\n0 matching test cases\n"sv;
CHECK(console.messages == no_tests);
}
}
}
Expand Down

0 comments on commit e2cc082

Please sign in to comment.