Skip to content

Commit

Permalink
small aesthetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SpectraL519 committed Feb 17, 2024
1 parent 6e27a52 commit bff2cf6
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: format
on:
push:
branches:
- version-1.1
- '*'
pull_request:
branches:
- master
Expand Down
5 changes: 1 addition & 4 deletions test/source/test_argument_name.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <sstream>
#include <string_view>

using namespace ap_testing;
using namespace ap::argument::detail;

namespace {
Expand All @@ -27,8 +28,6 @@ argument_name default_argument_name_both_names() {

} // namespace

namespace ap_testing {

TEST_SUITE_BEGIN("test_argument_name");

TEST_CASE("argument_name.name member should be correctly "
Expand Down Expand Up @@ -121,5 +120,3 @@ TEST_CASE("operator<< should push correct data to the output stream") {
}

TEST_SUITE_END();

} // namespace ap_testing
5 changes: 1 addition & 4 deletions test/source/test_argument_parser_add_argument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include <iostream>

using namespace ap_testing;
using namespace ap::argument;

namespace {
Expand All @@ -20,8 +21,6 @@ constexpr std::string_view other_short_name = "o";

} // namespace

namespace ap_testing {

TEST_SUITE_BEGIN("test_argument_parser_add_argument");

TEST_CASE_FIXTURE(argument_parser_test_fixture, "default_positional_arguments should add the specified arguments") {
Expand Down Expand Up @@ -141,5 +140,3 @@ TEST_CASE_FIXTURE(argument_parser_test_fixture, "add_flag should throw only when
}

TEST_SUITE_END();

} // namespace ap_testing
6 changes: 2 additions & 4 deletions test/source/test_argument_parser_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

#include <ap/argument_parser.hpp>

using namespace ap_testing;

namespace {
const std::string test_name = "test program name";
const std::string test_description = "test program description";
} // namespace

namespace ap_testing {

TEST_SUITE_BEGIN("test_argument_parser_info");

TEST_CASE_FIXTURE(argument_parser_test_fixture, "parser's program name member should be nullopt by default") {
Expand Down Expand Up @@ -45,5 +45,3 @@ TEST_CASE_FIXTURE(argument_parser_test_fixture, "name() should set the program n
}

TEST_SUITE_END();

} // namespace ap_testing
5 changes: 1 addition & 4 deletions test/source/test_argument_parser_parse_args.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include <ap/argument_parser.hpp>

using namespace ap_testing;
using namespace ap::argument;
using namespace ap::nargs;

Expand All @@ -28,8 +29,6 @@ const std::string optional_arg_short_name = "oa";

} // namespace

namespace ap_testing {

TEST_SUITE_BEGIN("test_argument_parser_parse_args");

TEST_SUITE_BEGIN("test_argument_parser_parse_args::_preprocess_input");
Expand Down Expand Up @@ -649,5 +648,3 @@ TEST_CASE_FIXTURE(
TEST_SUITE_END(); // test_argument_parser_parse_args::values

TEST_SUITE_END(); // test_argument_parser_parse_args

} // namespace ap_testing
6 changes: 5 additions & 1 deletion test/source/test_boolean.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

/*
This test file was created to determine whether the doctest library
and test Makefiles have been set up correctly :)
and testing CMakeLists.txt file have been set up correctly :)
*/

TEST_SUITE_BEGIN("test_boolean");

TEST_CASE("true should be true") {
REQUIRE(true == true);
}
Expand All @@ -20,3 +22,5 @@ TEST_CASE("false should be false") {
TEST_CASE("false should not be true") {
REQUIRE_FALSE(false == true);
}

TEST_SUITE_END();
5 changes: 1 addition & 4 deletions test/source/test_nargs_range.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <limits>

using namespace ap_testing;
using namespace ap::nargs;

namespace {
Expand All @@ -20,8 +21,6 @@ constexpr range::count_type nmax = std::numeric_limits<range::count_type>::max()

} // namespace

namespace ap_testing {

TEST_SUITE_BEGIN("test_nargs_range");

TEST_CASE("in_range should return true for default range only when n is 1") {
Expand Down Expand Up @@ -113,5 +112,3 @@ TEST_CASE("range builders should return correct range objects") {
}

TEST_SUITE_END(); // test_nargs_range

} // namespace ap_testing

0 comments on commit bff2cf6

Please sign in to comment.