Skip to content

Commit

Permalink
fixes for CI failures
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaileychess committed Aug 28, 2022
1 parent 208d42e commit 1fbc322
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion tests/flexbuffers_test.cpp
@@ -1,5 +1,6 @@
#include "flatbuffers/flexbuffers.h"
#include "flexbuffers_test.h"

#include "flatbuffers/flexbuffers.h"
#include "flatbuffers/idl.h"
#include "is_quiet_nan.h"
#include "test_assert.h"
Expand Down
14 changes: 7 additions & 7 deletions tests/util_test.cpp
@@ -1,4 +1,5 @@
#include "util_test.h"

#include "flatbuffers/util.h"
#include "test_assert.h"

Expand Down Expand Up @@ -31,7 +32,7 @@ void NumericUtilsTestFloat(const char *lower, const char *upper) {
TEST_EQ(flatbuffers::StringToNumber(lower, &f), true);
TEST_EQ(f, -flatbuffers::numeric_limits<T>::infinity());
}
}
} // namespace

void NumericUtilsTest() {
NumericUtilsTestInteger<uint64_t>("-1", "18446744073709551616");
Expand Down Expand Up @@ -59,8 +60,8 @@ void IsAsciiUtilsTest() {

void UtilConvertCase() {
{
std::vector<std::tuple<std::string, flatbuffers::Case, std::string>>
cases = {
std::vector<std::tuple<std::string, flatbuffers::Case, std::string>> cases =
{{
// Tests for the common cases
{ "the_quick_brown_fox", flatbuffers::Case::kUpperCamel,
"TheQuickBrownFox" },
Expand Down Expand Up @@ -102,7 +103,7 @@ void UtilConvertCase() {
{ "trailing_", flatbuffers::Case::kScreamingSnake, "TRAILING_" },
{ "double__underscore", flatbuffers::Case::kScreamingSnake,
"DOUBLE__UNDERSCORE" },
};
}};

for (auto &test_case : cases) {
TEST_EQ(std::get<2>(test_case),
Expand All @@ -115,7 +116,7 @@ void UtilConvertCase() {
{
std::vector<std::tuple<flatbuffers::Case, std::string, flatbuffers::Case,
std::string>>
cases = {
cases = {{
{ flatbuffers::Case::kUpperCamel, "TheQuickBrownFox",
flatbuffers::Case::kSnake, "the_quick_brown_fox" },
{ flatbuffers::Case::kLowerCamel, "theQuickBrownFox",
Expand All @@ -138,7 +139,7 @@ void UtilConvertCase() {
flatbuffers::Case::kSnake, "a_12b_34c_45" },
{ flatbuffers::Case::kLowerCamel, "a12b34c45",
flatbuffers::Case::kSnake2, "a12_b34_c45" },
};
}};

for (auto &test_case : cases) {
TEST_EQ(std::get<3>(test_case),
Expand All @@ -149,6 +150,5 @@ void UtilConvertCase() {
}
}


} // namespace tests
} // namespace flatbuffers

0 comments on commit 1fbc322

Please sign in to comment.