Skip to content

Commit

Permalink
💚 fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed May 19, 2020
1 parent 21b1680 commit 4d39644
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Expand Up @@ -14,4 +14,4 @@ jobs:
- name: build
run: cmake --build build --parallel 10
- name: test
run: cd build ; ctest -j 10
run: cd build ; ctest -j 10 --output-on-failure
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Expand Up @@ -14,4 +14,4 @@ jobs:
- name: build
run: cmake --build build --parallel 10
- name: test
run: cd build ; ctest -j 10
run: cd build ; ctest -j 10 --output-on-failure
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Expand Up @@ -14,4 +14,4 @@ jobs:
- name: build
run: cmake --build build --parallel 10
- name: test
run: cd build ; ctest -j 10 -C Debug --exclude-regex "test-unicode"
run: cd build ; ctest -j 10 -C Debug --exclude-regex "test-unicode" --output-on-failure
2 changes: 1 addition & 1 deletion test/src/unit-bson.cpp
Expand Up @@ -499,7 +499,7 @@ TEST_CASE("BSON")
const auto s = std::vector<std::uint8_t>(N, 'x');
json j =
{
{ "entry", json::binary(s) }
{ "entry", json::binary(s, 0) }
};

std::vector<std::uint8_t> expected =
Expand Down
7 changes: 5 additions & 2 deletions test/src/unit-udt.cpp
Expand Up @@ -765,9 +765,12 @@ TEST_CASE("different basic_json types conversions")

SECTION("binary")
{
json j = json::binary({1, 2, 3});
json j = json::binary({1, 2, 3}, 42);
custom_json cj = j;
CHECK(cj.get_binary() == j.get_binary());
CHECK(cj.get_binary().subtype() == 42);
std::vector<std::uint8_t> cv = cj.get_binary();
std::vector<std::uint8_t> v = j.get_binary();
CHECK(cv == v);
}

SECTION("object")
Expand Down

0 comments on commit 4d39644

Please sign in to comment.