From e97b5f98ab65724f808e13a3ee421103da157cdb Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Tue, 20 Aug 2024 16:30:45 +0200 Subject: [PATCH] accept some insta test changes --- crates/lib/tests/serde.rs | 6 ++++-- crates/lib/tests/snapshots/serde__json_mappings-2.snap | 4 ++-- crates/lib/tests/snapshots/serde__json_mappings.snap | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/crates/lib/tests/serde.rs b/crates/lib/tests/serde.rs index ec933599b13..05acbab06c7 100644 --- a/crates/lib/tests/serde.rs +++ b/crates/lib/tests/serde.rs @@ -58,6 +58,7 @@ fn test_json_mappings() { ("and_peggy", AlgebraicType::option(AlgebraicType::F64)), ("identity", Identity::get_type()), ]); + let data = r#" { "foo": 42, @@ -65,10 +66,11 @@ fn test_json_mappings() { "baz": ["heyyyyyy", "hooo"], "quux": { "Hash": "54a3e6d2b0959deaacf102292b1cbd6fcbb8cf237f73306e27ed82c3153878aa" }, "and_peggy": { "some": 3.141592653589793238426 }, - "identity": ["0000000000000000000000000000000000000000000000000000000000000000"] + "identity": ["0x0"] } "#; // all of those ^^^^^^ digits are from memory de_json_snapshot!(schema, data); + let data = r#" { "foo": 5654, @@ -76,7 +78,7 @@ fn test_json_mappings() { "baz": ["it's 🥶°C"], "quux": { "Unit": [] }, "and_peggy": null, - "identity": ["0000000000000000000000000000000000000000000000000000000000000000"] + "identity": ["0x0"] } "#; de_json_snapshot!(schema, data); diff --git a/crates/lib/tests/snapshots/serde__json_mappings-2.snap b/crates/lib/tests/snapshots/serde__json_mappings-2.snap index e337775bbd4..48ca2ac1778 100644 --- a/crates/lib/tests/snapshots/serde__json_mappings-2.snap +++ b/crates/lib/tests/snapshots/serde__json_mappings-2.snap @@ -1,6 +1,6 @@ --- source: crates/lib/tests/serde.rs -expression: "de_json({\n \"foo\": 5654,\n \"bar\": [1, 15, 44],\n \"baz\": [\"it's 🥶°C\"],\n \"quux\": { \"Unit\": [] },\n \"and_peggy\": null,\n \"identity\": [\"0000000000000000000000000000000000000000000000000000000000000000\"]\n})" +expression: "de_json({\n \"foo\": 5654,\n \"bar\": [1, 15, 44],\n \"baz\": [\"it's 🥶°C\"],\n \"quux\": { \"Unit\": [] },\n \"and_peggy\": null,\n \"identity\": [\"0x0\"]\n})" --- ( foo = 5654, @@ -15,6 +15,6 @@ expression: "de_json({\n \"foo\": 5654,\n \"bar\": [1, 15, 44],\n \"baz none = (), ), identity = ( - __identity_bytes = 0x0000000000000000000000000000000000000000000000000000000000000000, + __identity__ = 0x0000000000000000000000000000000000000000000000000000000000000000, ), ) diff --git a/crates/lib/tests/snapshots/serde__json_mappings.snap b/crates/lib/tests/snapshots/serde__json_mappings.snap index 5c2270a6b41..2e127231751 100644 --- a/crates/lib/tests/snapshots/serde__json_mappings.snap +++ b/crates/lib/tests/snapshots/serde__json_mappings.snap @@ -1,6 +1,6 @@ --- source: crates/lib/tests/serde.rs -expression: "de_json({\n \"foo\": 42,\n \"bar\": \"404040FFFF0A48656C6C6F\",\n \"baz\": [\"heyyyyyy\", \"hooo\"],\n \"quux\": { \"Hash\": \"54a3e6d2b0959deaacf102292b1cbd6fcbb8cf237f73306e27ed82c3153878aa\" },\n \"and_peggy\": { \"some\": 3.141592653589793238426 },\n \"identity\": [\"0000000000000000000000000000000000000000000000000000000000000000\"]\n})" +expression: "de_json({\n \"foo\": 42,\n \"bar\": \"404040FFFF0A48656C6C6F\",\n \"baz\": [\"heyyyyyy\", \"hooo\"],\n \"quux\": { \"Hash\": \"54a3e6d2b0959deaacf102292b1cbd6fcbb8cf237f73306e27ed82c3153878aa\" },\n \"and_peggy\": { \"some\": 3.141592653589793238426 },\n \"identity\": [\"0x0\"]\n})" --- ( foo = 42, @@ -16,6 +16,6 @@ expression: "de_json({\n \"foo\": 42,\n \"bar\": \"404040FFFF0A48656C6C6F\ some = 3.141592653589793, ), identity = ( - __identity_bytes = 0x0000000000000000000000000000000000000000000000000000000000000000, + __identity__ = 0x0000000000000000000000000000000000000000000000000000000000000000, ), )