Skip to content

Commit abd40e4

Browse files
authored
Upgrade Core to 38d686c3e828da4748d4b58bb522bf91e5a0e8b5 (#894)
Signed-off-by: Juan Cruz Viotti <[email protected]>
1 parent 3fcfa95 commit abd40e4

File tree

382 files changed

+164847
-84447
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

382 files changed

+164847
-84447
lines changed

DEPENDENCIES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
vendorpull https://github.com/sourcemeta/vendorpull 1dcbac42809cf87cb5b045106b863e17ad84ba02
2-
core https://github.com/sourcemeta/core 1f23fc7df56f41ceb140719bbcf94ee6f4d6f066
2+
core https://github.com/sourcemeta/core 38d686c3e828da4748d4b58bb522bf91e5a0e8b5
33
bootstrap https://github.com/twbs/bootstrap 1a6fdfae6be09b09eaced8f0e442ca6f7680a61e

src/runtime/encoder_any.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ auto Encoder::ANY_PACKED_TYPE_TAG_BYTE_PREFIX(
8181
: SUBTYPE_FALSE};
8282
this->put_byte(TYPE_OTHER |
8383
static_cast<std::uint8_t>(subtype << type_size));
84-
} else if (document.is_integer_real()) {
84+
} else if (document.is_real() && document.is_integral()) {
8585
const auto value{document.as_integer()};
8686
if (value >= 0 && is_byte(value)) {
8787
this->put_byte(TYPE_OTHER | SUBTYPE_POSITIVE_REAL_INTEGER_BYTE

test/e2e/runner.cc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@ auto main(int argc, char *argv[]) -> int {
4141
std::ofstream canonical_output_stream(directory / "canonical.json",
4242
std::ios::binary);
4343
canonical_output_stream.exceptions(std::ios_base::badbit);
44-
sourcemeta::core::prettify(schema, canonical_output_stream,
45-
sourcemeta::core::schema_format_compare);
44+
45+
sourcemeta::core::format(schema, sourcemeta::core::schema_official_walker,
46+
sourcemeta::core::schema_official_resolver,
47+
"https://json-schema.org/draft/2020-12/schema");
48+
sourcemeta::core::prettify(schema, canonical_output_stream);
4649
canonical_output_stream << "\n";
4750
canonical_output_stream.flush();
4851
canonical_output_stream.close();
@@ -55,8 +58,7 @@ auto main(int argc, char *argv[]) -> int {
5558
std::ofstream encoding_output_stream(directory / "encoding.json",
5659
std::ios::binary);
5760
encoding_output_stream.exceptions(std::ios_base::badbit);
58-
sourcemeta::core::prettify(schema, encoding_output_stream,
59-
sourcemeta::core::schema_format_compare);
61+
sourcemeta::core::prettify(schema, encoding_output_stream);
6062
encoding_output_stream << "\n";
6163
encoding_output_stream.flush();
6264
encoding_output_stream.close();

test/runtime/decode_any_test.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,10 @@ TEST(JSONBinPack_Decoder, ANY_PACKED_TYPE_TAG_BYTE_PREFIX__real_3_0) {
268268
Decoder decoder{stream};
269269
const auto result = decoder.ANY_PACKED_TYPE_TAG_BYTE_PREFIX({});
270270
EXPECT_TRUE(result.is_real());
271-
EXPECT_TRUE(result.is_integer_real());
271+
EXPECT_TRUE(result.is_integral());
272272
const sourcemeta::core::JSON expected{3.0};
273273
EXPECT_TRUE(expected.is_real());
274-
EXPECT_TRUE(expected.is_integer_real());
274+
EXPECT_TRUE(expected.is_integral());
275275
EXPECT_EQ(result, expected);
276276
}
277277

@@ -281,10 +281,10 @@ TEST(JSONBinPack_Decoder, ANY_PACKED_TYPE_TAG_BYTE_PREFIX__real_103_0) {
281281
Decoder decoder{stream};
282282
const auto result = decoder.ANY_PACKED_TYPE_TAG_BYTE_PREFIX({});
283283
EXPECT_TRUE(result.is_real());
284-
EXPECT_TRUE(result.is_integer_real());
284+
EXPECT_TRUE(result.is_integral());
285285
const sourcemeta::core::JSON expected{103.0};
286286
EXPECT_TRUE(expected.is_real());
287-
EXPECT_TRUE(expected.is_integer_real());
287+
EXPECT_TRUE(expected.is_integral());
288288
EXPECT_EQ(result, expected);
289289
}
290290

vendor/core/CMakeLists.txt

Lines changed: 39 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/core/cmake/FindBoostRegex.cmake

Lines changed: 0 additions & 193 deletions
This file was deleted.

0 commit comments

Comments
 (0)