From df1c6887b0f111aa49c443cf74892c18f2d4ac2b 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 | 4 +--- .../gleam_core__erlang__tests__echo__echo_with_a_block.snap | 4 +--- ...ore__erlang__tests__echo__echo_with_a_case_expression.snap | 4 +--- ..._core__erlang__tests__echo__echo_with_a_function_call.snap | 4 +--- .../gleam_core__erlang__tests__echo__echo_with_a_panic.snap | 4 +--- ...e__erlang__tests__echo__echo_with_a_simple_expression.snap | 4 +--- ...re__erlang__tests__echo__multiple_echos_in_a_pipeline.snap | 4 +--- ...erlang__tests__echo__multiple_echos_inside_expression.snap | 4 +--- compiler-core/src/javascript/tests/echo.rs | 2 +- ...eam_core__javascript__tests__echo__echo_in_a_pipeline.snap | 4 +--- ...leam_core__javascript__tests__echo__echo_with_a_block.snap | 4 +--- ..._javascript__tests__echo__echo_with_a_case_expression.snap | 4 +--- ...e__javascript__tests__echo__echo_with_a_function_call.snap | 4 +--- ...leam_core__javascript__tests__echo__echo_with_a_panic.snap | 4 +--- ...avascript__tests__echo__echo_with_a_simple_expression.snap | 4 +--- ...javascript__tests__echo__multiple_echos_in_a_pipeline.snap | 4 +--- ...script__tests__echo__multiple_echos_inside_expression.snap | 4 +--- 18 files changed, 18 insertions(+), 50 deletions(-) diff --git a/compiler-core/src/erlang/tests/echo.rs b/compiler-core/src/erlang/tests/echo.rs index 906c544dba1..24ca136ab82 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..cf1b25b2514 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`... +% ...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..76c2ca06a9a 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`... +% ...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..95f7402ab6d 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`... +% ...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..e013054d75a 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`... +% ...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..0dca16f16c1 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`... +% ...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..a2b00853476 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`... +% ...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..714a5d5beca 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`... +% ...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..eb3b63ab325 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`... +% ...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..030b6b6a6cc 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..4dfed157f5a 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`... +// ...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..5b969713a3c 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`... +// ...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..2d3a186c0a6 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`... +// ...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..45355bec07d 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`... +// ...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..edd13805ba5 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`... +// ...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..a17f166386d 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`... +// ...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..7a5b520ad93 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`... +// ...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..2174f24c6f3 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`... +// ...omitted code from `templates/echo.mjs`...