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 c90dc92
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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
11 changes: 6 additions & 5 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 =
std::vector<std::tuple<std::string, flatbuffers::Case, std::string>>{
// Tests for the common cases
{ "the_quick_brown_fox", flatbuffers::Case::kUpperCamel,
"TheQuickBrownFox" },
Expand Down Expand Up @@ -115,7 +116,8 @@ void UtilConvertCase() {
{
std::vector<std::tuple<flatbuffers::Case, std::string, flatbuffers::Case,
std::string>>
cases = {
cases = std::vector<std::tuple<flatbuffers::Case, std::string,
flatbuffers::Case, std::string>>{
{ flatbuffers::Case::kUpperCamel, "TheQuickBrownFox",
flatbuffers::Case::kSnake, "the_quick_brown_fox" },
{ flatbuffers::Case::kLowerCamel, "theQuickBrownFox",
Expand Down Expand Up @@ -149,6 +151,5 @@ void UtilConvertCase() {
}
}


} // namespace tests
} // namespace flatbuffers

0 comments on commit c90dc92

Please sign in to comment.