Skip to content

Switched to Catch2 v3 #158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function(skyr_create_test file_name output_dir test_name version)
${test}
PRIVATE
skyr-url-${version}
Catch2::Catch2
Catch2::Catch2WithMain
fmt::fmt
)
set_target_properties(
Expand Down
2 changes: 1 addition & 1 deletion tests/v1/containers/static_vector_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <memory>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v1/containers/static_vector.hpp>


Expand Down
2 changes: 1 addition & 1 deletion tests/v1/domain/domain_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <string>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v1/domain/domain.hpp>
#include <skyr/v1/domain/errors.hpp>

Expand Down
2 changes: 1 addition & 1 deletion tests/v1/domain/idna_table_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// http://www.boost.org/LICENSE_1_0.txt)

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v1/domain/idna.hpp>


Expand Down
2 changes: 1 addition & 1 deletion tests/v1/domain/punycode_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <string>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v1/domain/punycode.hpp>


Expand Down
2 changes: 1 addition & 1 deletion tests/v1/filesystem/filesystem_path_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// http://www.boost.org/LICENSE_1_0.txt)

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v1/url.hpp>
#include <skyr/v1/filesystem/path.hpp>

Expand Down
2 changes: 1 addition & 1 deletion tests/v1/json/json_query_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <vector>
#include <skyr/v1/json/json.hpp>

Expand Down
2 changes: 1 addition & 1 deletion tests/v1/network/ipv4_address_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// http://www.boost.org/LICENSE_1_0.txt)

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v1/network/ipv4_address.hpp>

TEST_CASE("ipv4 addresses", "[ipv4]") {
Expand Down
2 changes: 1 addition & 1 deletion tests/v1/network/ipv6_address_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// http://www.boost.org/LICENSE_1_0.txt)

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v1/network/ipv6_address.hpp>

TEST_CASE("ipv6_address_tests", "[ipv6]") {
Expand Down
2 changes: 1 addition & 1 deletion tests/v1/percent_encoding/percent_decoding_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// http://www.boost.org/LICENSE_1_0.txt)

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#define FMT_HEADER_ONLY
#include <fmt/format.h>
#include <skyr/v1/percent_encoding/percent_decode.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/v1/percent_encoding/percent_encoding_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// http://www.boost.org/LICENSE_1_0.txt)

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#define FMT_HEADER_ONLY
#include <fmt/format.h>
#include <skyr/v1/percent_encoding/percent_encode.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/v1/unicode/byte_conversion_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <string>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v1/unicode/details/to_u8.hpp>

TEST_CASE("weird_01", "byte_conversion_tests") {
Expand Down
2 changes: 1 addition & 1 deletion tests/v1/unicode/unicode_code_point_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <iterator>
#include <string_view>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v1/unicode/code_point.hpp>


Expand Down
2 changes: 1 addition & 1 deletion tests/v1/unicode/unicode_range_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <iterator>
#include <string_view>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v1/unicode/ranges/transforms/u16_transform.hpp>
#include <skyr/v1/unicode/ranges/transforms/u32_transform.hpp>
#include <skyr/v1/unicode/ranges/transforms/u8_transform.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/v1/unicode/unicode_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// http://www.boost.org/LICENSE_1_0.txt)

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v1/unicode/ranges/transforms/u16_transform.hpp>
#include <skyr/v1/unicode/ranges/transforms/u32_transform.hpp>
#include <skyr/v1/unicode/ranges/transforms/u8_transform.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/v1/url/parse_host_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <string_view>
#include <variant>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v1/core/host.hpp>

TEST_CASE("parse_host_tests", "url.parse_host") {
Expand Down
2 changes: 1 addition & 1 deletion tests/v1/url/url_literal_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <algorithm>
#include <memory>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v1/url.hpp>

using namespace skyr::literals;
Expand Down
2 changes: 1 addition & 1 deletion tests/v1/url/url_parse_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// http://www.boost.org/LICENSE_1_0.txt)

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v1/core/parse.hpp>
#include <skyr/v1/core/serialize.hpp>

Expand Down
2 changes: 1 addition & 1 deletion tests/v1/url/url_search_parameters_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// http://www.boost.org/LICENSE_1_0.txt)

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v1/url.hpp>
#include <skyr/v1/url_search_parameters.hpp>

Expand Down
2 changes: 1 addition & 1 deletion tests/v1/url/url_serialize_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// http://www.boost.org/LICENSE_1_0.txt)

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v1/core/parse.hpp>
#include <skyr/v1/core/serialize.hpp>

Expand Down
2 changes: 1 addition & 1 deletion tests/v1/url/url_setter_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// http://www.boost.org/LICENSE_1_0.txt)

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v1/url.hpp>

TEST_CASE("url_setter_tests", "[url]") {
Expand Down
2 changes: 1 addition & 1 deletion tests/v1/url/url_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <algorithm>
#include <memory>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v1/url.hpp>

TEST_CASE("url_tests", "[url]") {
Expand Down
2 changes: 1 addition & 1 deletion tests/v1/url/url_tests_with_exceptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <algorithm>
#include <memory>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v1/url.hpp>

TEST_CASE("url_tests", "[url]") {
Expand Down
2 changes: 1 addition & 1 deletion tests/v1/url/url_vector_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <vector>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v1/url.hpp>

TEST_CASE("url_vector_tests", "[url]") {
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/containers/static_vector_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <memory>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v2/containers/static_vector.hpp>


Expand Down
2 changes: 1 addition & 1 deletion tests/v2/core/parse_host_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <string_view>
#include <variant>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v2/core/host.hpp>

TEST_CASE("parse_host_tests", "url.parse_host") {
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/core/parse_path_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// http://www.boost.org/LICENSE_1_0.txt)

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v2/core/parse_path.hpp>

TEST_CASE("path_parsing_example_tests", "[parse]") {
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/core/parse_query_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// http://www.boost.org/LICENSE_1_0.txt)

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v2/core/parse_query.hpp>

TEST_CASE("query_parsing_example_tests", "[parse]") {
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/core/url_parse_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// http://www.boost.org/LICENSE_1_0.txt)

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v2/core/parse.hpp>
#include <skyr/v2/core/serialize.hpp>

Expand Down
2 changes: 1 addition & 1 deletion tests/v2/core/url_serialize_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// http://www.boost.org/LICENSE_1_0.txt)

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v2/core/parse.hpp>
#include <skyr/v2/core/serialize.hpp>

Expand Down
2 changes: 1 addition & 1 deletion tests/v2/domain/domain_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <string>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v2/domain/domain.hpp>
#include <skyr/v2/domain/errors.hpp>

Expand Down
2 changes: 1 addition & 1 deletion tests/v2/domain/idna_table_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// http://www.boost.org/LICENSE_1_0.txt)

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v2/domain/idna.hpp>


Expand Down
2 changes: 1 addition & 1 deletion tests/v2/domain/punycode_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <string>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v2/domain/punycode.hpp>


Expand Down
2 changes: 1 addition & 1 deletion tests/v2/filesystem/filesystem_path_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// http://www.boost.org/LICENSE_1_0.txt)

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v2/url.hpp>
#include <skyr/v2/filesystem/path.hpp>

Expand Down
2 changes: 1 addition & 1 deletion tests/v2/json/json_query_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <vector>
#include <skyr/v2/json/json.hpp>

Expand Down
2 changes: 1 addition & 1 deletion tests/v2/network/ipv4_address_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// http://www.boost.org/LICENSE_1_0.txt)

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v2/network/ipv4_address.hpp>

TEST_CASE("ipv4 addresses", "[ipv4]") {
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/network/ipv6_address_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// http://www.boost.org/LICENSE_1_0.txt)

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v2/network/ipv6_address.hpp>

TEST_CASE("ipv6_address_tests", "[ipv6]") {
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/percent_encoding/percent_decoding_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// http://www.boost.org/LICENSE_1_0.txt)

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#define FMT_HEADER_ONLY
#include <fmt/format.h>
#include <skyr/v2/percent_encoding/percent_decode.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/percent_encoding/percent_encoding_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// http://www.boost.org/LICENSE_1_0.txt)

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#define FMT_HEADER_ONLY
#include <fmt/format.h>
#include <skyr/v2/percent_encoding/percent_encoded_char.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/unicode/byte_conversion_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <string>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v2/unicode/details/to_u8.hpp>

TEST_CASE("weird_01", "byte_conversion_tests") {
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/unicode/unicode_code_point_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <iterator>
#include <string_view>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v2/unicode/code_point.hpp>


Expand Down
2 changes: 1 addition & 1 deletion tests/v2/unicode/unicode_range_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <iterator>
#include <string_view>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v2/unicode/ranges/transforms/u16_transform.hpp>
#include <skyr/v2/unicode/ranges/transforms/u32_transform.hpp>
#include <skyr/v2/unicode/ranges/transforms/u8_transform.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/unicode/unicode_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// http://www.boost.org/LICENSE_1_0.txt)

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v2/unicode/ranges/transforms/u16_transform.hpp>
#include <skyr/v2/unicode/ranges/transforms/u32_transform.hpp>
#include <skyr/v2/unicode/ranges/transforms/u8_transform.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/url/url_literal_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <algorithm>
#include <memory>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <skyr/v2/url.hpp>

using namespace skyr::literals;
Expand Down
Loading