Skip to content

Commit

Permalink
Fix tests to build on MacOS #100
Browse files Browse the repository at this point in the history
  • Loading branch information
fklebert committed Jul 18, 2023
1 parent 16e689e commit 1c6124c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions libs/zswagcl/test/src/openapi-parameter-helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ using namespace zswagcl;

using Parameter = OpenAPIConfig::Parameter;
using Format = Parameter::Format;
using Style = Parameter::Style;
using PStyle = Parameter::Style;

static auto makeParameter(std::string ident,
Style style,
PStyle style,
bool explode,
Format format = Format::String)
{
Expand Down Expand Up @@ -46,7 +46,7 @@ const auto object = std::map<std::string, std::string>{

TEST_CASE("openapi path parameters", "[zswagcl::open-api-format-helper]") {
SECTION("Style Simple") {
auto style = Style::Simple;
auto style =PStyle::Simple;

SECTION("Primitive Value") {
auto explode = GENERATE(false, true);
Expand Down Expand Up @@ -89,7 +89,7 @@ TEST_CASE("openapi path parameters", "[zswagcl::open-api-format-helper]") {
}

SECTION("Style Label") {
auto style = Style::Label;
auto style =PStyle::Label;

SECTION("Primitive Value") {
auto explode = GENERATE(false, true);
Expand Down Expand Up @@ -135,7 +135,7 @@ TEST_CASE("openapi path parameters", "[zswagcl::open-api-format-helper]") {
}

SECTION("Style Matrix") {
auto style = Style::Matrix;
auto style =PStyle::Matrix;

SECTION("Primitive Value") {
auto explode = GENERATE(false, true);
Expand Down Expand Up @@ -186,7 +186,7 @@ TEST_CASE("openapi path parameters", "[zswagcl::open-api-format-helper]") {

TEST_CASE("openapi path parameters - formats", "[zswagcl::open-api-format-helper]") {
SECTION("Style Simple") {
auto style = Style::Simple;
auto style =PStyle::Simple;

SECTION("Format Hex") {
auto format = Format::Hex;
Expand Down Expand Up @@ -262,7 +262,7 @@ TEST_CASE("openapi path parameters - formats", "[zswagcl::open-api-format-helper

TEST_CASE("openapi query parameters", "[zswagcl::open-api-format-helper]") {
SECTION("Style Form") {
auto style = Style::Form;
auto style =PStyle::Form;

SECTION("Primitive Value") {
auto explode = GENERATE(false, true);
Expand Down

0 comments on commit 1c6124c

Please sign in to comment.