Skip to content

Commit

Permalink
Fix some
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti committed Feb 10, 2024
1 parent 9896490 commit 903ce54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/canonicalizer/2020_12_any_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ TEST(CanonicalizerAny_2020_12, implicit_type_union_1) {

TEST(CanonicalizerAny_2020_12, boolean_schema_1) {
sourcemeta::jsonbinpack::Canonicalizer canonicalizer;
sourcemeta::jsontoolkit::JSON schema{sourcemeta::jsontoolkit::JSON{true}};
sourcemeta::jsontoolkit::JSON schema{true};

canonicalizer.apply(schema, sourcemeta::jsontoolkit::default_schema_walker,
sourcemeta::jsontoolkit::official_resolver,
Expand Down Expand Up @@ -434,7 +434,7 @@ TEST(CanonicalizerAny_2020_12, boolean_schema_1) {

TEST(CanonicalizerAny_2020_12, boolean_schema_2) {
sourcemeta::jsonbinpack::Canonicalizer canonicalizer;
sourcemeta::jsontoolkit::JSON schema{sourcemeta::jsontoolkit::JSON{false}};
sourcemeta::jsontoolkit::JSON schema{false};

canonicalizer.apply(schema, sourcemeta::jsontoolkit::default_schema_walker,
sourcemeta::jsontoolkit::official_resolver,
Expand Down
4 changes: 2 additions & 2 deletions test/runtime/decode_enum_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ TEST(Decoder, LARGE_CHOICE_INDEX_non_scalar_1) {
choices.push_back(sourcemeta::jsontoolkit::parse("{ \"bar\": 1 }"));
const sourcemeta::jsontoolkit::JSON result =
decoder.LARGE_CHOICE_INDEX({std::move(choices)});
const sourcemeta::jsontoolkit::JSON expected{
sourcemeta::jsontoolkit::parse("{ \"foo\": 1 }")};
const sourcemeta::jsontoolkit::JSON expected =
sourcemeta::jsontoolkit::parse("{ \"foo\": 1 }");
EXPECT_EQ(result, expected);
}

Expand Down

0 comments on commit 903ce54

Please sign in to comment.