From 9f2534905eae858f3c327b4692f867a66da5f146 Mon Sep 17 00:00:00 2001 From: Giacomo Cavalieri Date: Mon, 21 Oct 2024 19:18:33 +0200 Subject: [PATCH] snapshots one last time --- compiler-core/src/erlang/tests/echo.rs | 2 +- .../gleam_core__erlang__tests__echo__echo_in_a_pipeline.snap | 2 -- .../gleam_core__erlang__tests__echo__echo_with_a_block.snap | 2 -- ..._core__erlang__tests__echo__echo_with_a_case_expression.snap | 2 -- ...am_core__erlang__tests__echo__echo_with_a_function_call.snap | 2 -- .../gleam_core__erlang__tests__echo__echo_with_a_panic.snap | 2 -- ...ore__erlang__tests__echo__echo_with_a_simple_expression.snap | 2 -- ...core__erlang__tests__echo__multiple_echos_in_a_pipeline.snap | 2 -- ...__erlang__tests__echo__multiple_echos_inside_expression.snap | 2 -- compiler-core/src/javascript/tests/echo.rs | 2 +- ...gleam_core__javascript__tests__echo__echo_in_a_pipeline.snap | 2 -- .../gleam_core__javascript__tests__echo__echo_with_a_block.snap | 2 -- ...e__javascript__tests__echo__echo_with_a_case_expression.snap | 2 -- ...ore__javascript__tests__echo__echo_with_a_function_call.snap | 2 -- .../gleam_core__javascript__tests__echo__echo_with_a_panic.snap | 2 -- ..._javascript__tests__echo__echo_with_a_simple_expression.snap | 2 -- ...__javascript__tests__echo__multiple_echos_in_a_pipeline.snap | 2 -- ...vascript__tests__echo__multiple_echos_inside_expression.snap | 2 -- 18 files changed, 2 insertions(+), 34 deletions(-) diff --git a/compiler-core/src/erlang/tests/echo.rs b/compiler-core/src/erlang/tests/echo.rs index 906c544dba1..8ae5c904187 100644 --- a/compiler-core/src/erlang/tests/echo.rs +++ b/compiler-core/src/erlang/tests/echo.rs @@ -11,7 +11,7 @@ macro_rules! assert_generic_echo { std::include_str!("../../../templates/echo.erl") )) .expect("contain generic echo code from `echo.erl`"); - let output = format!("{output}\n\n...omitted code from `templates/echo.erl`..."); + let output = format!("{output}...omitted code from `templates/echo.erl`..."); insta::assert_snapshot!(insta::internals::AutoName, output, $src); }}; } diff --git a/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_in_a_pipeline.snap b/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_in_a_pipeline.snap index eb1ae749c0e..0e8fdd34b6d 100644 --- a/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_in_a_pipeline.snap +++ b/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_in_a_pipeline.snap @@ -19,6 +19,4 @@ main() -> echo(_pipe), wibble(_pipe). - - ...omitted code from `templates/echo.erl`... diff --git a/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_block.snap b/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_block.snap index 04e49b067a8..eb6612898fc 100644 --- a/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_block.snap +++ b/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_block.snap @@ -17,6 +17,4 @@ main() -> end ). - - ...omitted code from `templates/echo.erl`... diff --git a/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_case_expression.snap b/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_case_expression.snap index 37e95f0688b..7faae9f34f5 100644 --- a/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_case_expression.snap +++ b/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_case_expression.snap @@ -15,6 +15,4 @@ main() -> 2 end). - - ...omitted code from `templates/echo.erl`... diff --git a/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_function_call.snap b/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_function_call.snap index 0799b2919f8..663c6be2174 100644 --- a/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_function_call.snap +++ b/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_function_call.snap @@ -17,6 +17,4 @@ wibble(N, M) -> main() -> echo(wibble(1, 2)). - - ...omitted code from `templates/echo.erl`... diff --git a/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_panic.snap b/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_panic.snap index ec04784ac80..e9210f7f5ef 100644 --- a/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_panic.snap +++ b/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_panic.snap @@ -16,6 +16,4 @@ main() -> function => <<"main"/utf8>>, line => 3})). - - ...omitted code from `templates/echo.erl`... diff --git a/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_simple_expression.snap b/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_simple_expression.snap index b7638c8a6b8..02a3e9e113e 100644 --- a/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_simple_expression.snap +++ b/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_simple_expression.snap @@ -12,6 +12,4 @@ expression: "\npub fn main() {\n echo 1\n}\n" main() -> echo(1). - - ...omitted code from `templates/echo.erl`... diff --git a/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__multiple_echos_in_a_pipeline.snap b/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__multiple_echos_in_a_pipeline.snap index bce9991223c..1684900785c 100644 --- a/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__multiple_echos_in_a_pipeline.snap +++ b/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__multiple_echos_in_a_pipeline.snap @@ -22,6 +22,4 @@ main() -> _pipe@2 = wibble(_pipe@1), echo(_pipe@2). - - ...omitted code from `templates/echo.erl`... diff --git a/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__multiple_echos_inside_expression.snap b/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__multiple_echos_inside_expression.snap index fd5e9a8fbec..ec719e9ec18 100644 --- a/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__multiple_echos_inside_expression.snap +++ b/compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__multiple_echos_inside_expression.snap @@ -13,6 +13,4 @@ main() -> echo(1), echo(2). - - ...omitted code from `templates/echo.erl`... diff --git a/compiler-core/src/javascript/tests/echo.rs b/compiler-core/src/javascript/tests/echo.rs index 1aac14c64ec..a46c5e56c1c 100644 --- a/compiler-core/src/javascript/tests/echo.rs +++ b/compiler-core/src/javascript/tests/echo.rs @@ -8,7 +8,7 @@ macro_rules! assert_generic_echo { std::include_str!("../../../templates/echo.mjs") )) .expect("contain generic echo code from `echo.mjs`"); - let output = format!("{output}\n\n...omitted code from `templates/echo.mjs`..."); + let output = format!("{output}...omitted code from `templates/echo.mjs`..."); insta::assert_snapshot!(insta::internals::AutoName, output, $src); }}; } diff --git a/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_in_a_pipeline.snap b/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_in_a_pipeline.snap index 7a4f90b6bfc..86b7a76a7c3 100644 --- a/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_in_a_pipeline.snap +++ b/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_in_a_pipeline.snap @@ -15,6 +15,4 @@ export function main() { return wibble(_pipe); } - - ...omitted code from `templates/echo.mjs`... diff --git a/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_with_a_block.snap b/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_with_a_block.snap index 980202fb521..3a3beb47caa 100644 --- a/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_with_a_block.snap +++ b/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_with_a_block.snap @@ -14,6 +14,4 @@ export function main() { ); } - - ...omitted code from `templates/echo.mjs`... diff --git a/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_with_a_case_expression.snap b/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_with_a_case_expression.snap index 0c545c7c67a..46f92eb0388 100644 --- a/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_with_a_case_expression.snap +++ b/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_with_a_case_expression.snap @@ -16,6 +16,4 @@ export function main() { ); } - - ...omitted code from `templates/echo.mjs`... diff --git a/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_with_a_function_call.snap b/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_with_a_function_call.snap index 46ddb65994e..cde9f9976ef 100644 --- a/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_with_a_function_call.snap +++ b/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_with_a_function_call.snap @@ -13,6 +13,4 @@ export function main() { return echo(wibble(1, 2)); } - - ...omitted code from `templates/echo.mjs`... diff --git a/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_with_a_panic.snap b/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_with_a_panic.snap index 3c01634bdd0..0418aacbd5e 100644 --- a/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_with_a_panic.snap +++ b/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_with_a_panic.snap @@ -20,6 +20,4 @@ export function main() { ); } - - ...omitted code from `templates/echo.mjs`... diff --git a/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_with_a_simple_expression.snap b/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_with_a_simple_expression.snap index 7b864772a80..0e366083149 100644 --- a/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_with_a_simple_expression.snap +++ b/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__echo_with_a_simple_expression.snap @@ -9,6 +9,4 @@ export function main() { return echo(1); } - - ...omitted code from `templates/echo.mjs`... diff --git a/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__multiple_echos_in_a_pipeline.snap b/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__multiple_echos_in_a_pipeline.snap index ee6ccc98824..c421042ef62 100644 --- a/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__multiple_echos_in_a_pipeline.snap +++ b/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__multiple_echos_in_a_pipeline.snap @@ -18,6 +18,4 @@ export function main() { return echo(_pipe$2); } - - ...omitted code from `templates/echo.mjs`... diff --git a/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__multiple_echos_inside_expression.snap b/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__multiple_echos_inside_expression.snap index 700a8240c51..2c0792cdafa 100644 --- a/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__multiple_echos_inside_expression.snap +++ b/compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__echo__multiple_echos_inside_expression.snap @@ -10,6 +10,4 @@ export function main() { return echo(2); } - - ...omitted code from `templates/echo.mjs`...