Skip to content

Commit

Permalink
snapshots one last time
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomocavalieri committed Oct 21, 2024
1 parent 0b0a147 commit df1c688
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 50 deletions.
2 changes: 1 addition & 1 deletion compiler-core/src/erlang/tests/echo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,4 @@ main() ->
echo(_pipe),
wibble(_pipe).



...omitted code from `templates/echo.erl`...
% ...omitted code from `templates/echo.erl`...
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@ main() ->
end
).



...omitted code from `templates/echo.erl`...
% ...omitted code from `templates/echo.erl`...
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,4 @@ main() ->
2
end).



...omitted code from `templates/echo.erl`...
% ...omitted code from `templates/echo.erl`...
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@ wibble(N, M) ->
main() ->
echo(wibble(1, 2)).



...omitted code from `templates/echo.erl`...
% ...omitted code from `templates/echo.erl`...
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@ main() ->
function => <<"main"/utf8>>,
line => 3})).



...omitted code from `templates/echo.erl`...
% ...omitted code from `templates/echo.erl`...
Original file line number Diff line number Diff line change
Expand Up @@ -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`...
Original file line number Diff line number Diff line change
Expand Up @@ -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`...
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ main() ->
echo(1),
echo(2).



...omitted code from `templates/echo.erl`...
% ...omitted code from `templates/echo.erl`...
2 changes: 1 addition & 1 deletion compiler-core/src/javascript/tests/echo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,4 @@ export function main() {
return wibble(_pipe);
}



...omitted code from `templates/echo.mjs`...
// ...omitted code from `templates/echo.mjs`...
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@ export function main() {
);
}



...omitted code from `templates/echo.mjs`...
// ...omitted code from `templates/echo.mjs`...
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@ export function main() {
);
}



...omitted code from `templates/echo.mjs`...
// ...omitted code from `templates/echo.mjs`...
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ export function main() {
return echo(wibble(1, 2));
}



...omitted code from `templates/echo.mjs`...
// ...omitted code from `templates/echo.mjs`...
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@ export function main() {
);
}



...omitted code from `templates/echo.mjs`...
// ...omitted code from `templates/echo.mjs`...
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@ export function main() {
return echo(1);
}



...omitted code from `templates/echo.mjs`...
// ...omitted code from `templates/echo.mjs`...
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,4 @@ export function main() {
return echo(_pipe$2);
}



...omitted code from `templates/echo.mjs`...
// ...omitted code from `templates/echo.mjs`...
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@ export function main() {
return echo(2);
}



...omitted code from `templates/echo.mjs`...
// ...omitted code from `templates/echo.mjs`...

0 comments on commit df1c688

Please sign in to comment.