mirror of
https://github.com/nlohmann/json
synced 2024-11-23 12:30:06 +00:00
💚 fix build
This commit is contained in:
parent
21b1680ea1
commit
4d39644bd0
2
.github/workflows/macos.yml
vendored
2
.github/workflows/macos.yml
vendored
@ -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
.github/workflows/ubuntu.yml
vendored
2
.github/workflows/ubuntu.yml
vendored
@ -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
.github/workflows/windows.yml
vendored
2
.github/workflows/windows.yml
vendored
@ -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
|
||||
|
@ -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 =
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user