Fork of daniellemaywood.uk/gleam — Wasm codegen work
2

Configure Feed

Select the types of activity you want to include in your feed.

use nice syntax for string literals

author
Giacomo Cavalieri
committer
Louis Pilfold
date (Jul 14, 2026, 12:57 PM +0100) commit 34567f6d parent bdcd8333 change-id vlunlzzp
+604 -604
+6 -6
compiler-core/src/erlang/snapshots/gleam_core__erlang__tests__allowed_string_escapes.snap
··· 13 13 -file("project/test/my/mod.gleam", 1). 14 14 -spec a() -> binary(). 15 15 a() -> 16 - <<"\n"/utf8>>, 17 - <<"\r"/utf8>>, 18 - <<"\t"/utf8>>, 19 - <<"\\"/utf8>>, 20 - <<"\""/utf8>>, 21 - <<"\\^"/utf8>>. 16 + ~"\n", 17 + ~"\r", 18 + ~"\t", 19 + ~"\\", 20 + ~"\"", 21 + ~"\\^".
+4 -4
compiler-core/src/erlang/snapshots/gleam_core__erlang__tests__bit_pattern_shadowing.snap
··· 30 30 _ -> 31 31 erlang:error(#{ 32 32 gleam_error => panic, 33 - message => <<"`panic` expression evaluated."/utf8>>, 34 - file => <<"project/test/my/mod.gleam"/utf8>>, 35 - module => <<"my/mod"/utf8>>, 36 - function => <<"main"/utf8>>, 33 + message => ~"`panic` expression evaluated.", 34 + file => ~"project/test/my/mod.gleam", 35 + module => ~"my/mod", 36 + function => ~"main", 37 37 line => 7 38 38 }) 39 39 end.
+4 -4
compiler-core/src/erlang/snapshots/gleam_core__erlang__tests__discard_in_assert.snap
··· 23 23 _value -> 24 24 erlang:error(#{ 25 25 gleam_error => let_assert, 26 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => <<"project/test/my/mod.gleam"/utf8>>, 28 - module => <<"my/mod"/utf8>>, 29 - function => <<"x"/utf8>>, 26 + message => ~"Pattern match failed, no pattern matched the value.", 27 + file => ~"project/test/my/mod.gleam", 28 + module => ~"my/mod", 29 + function => ~"x", 30 30 line => 2, 31 31 value => _value, 32 32 start => 16,
+1 -1
compiler-core/src/erlang/snapshots/gleam_core__erlang__tests__integration_test17.snap
··· 19 19 -file("project/test/my/mod.gleam", 3). 20 20 -spec create_user(integer()) -> user(). 21 21 create_user(User_id) -> 22 - {user, User_id, <<""/utf8>>, 22}. 22 + {user, User_id, ~"", 22}.
+2 -2
compiler-core/src/erlang/snapshots/gleam_core__erlang__tests__tuple_access_in_guard.snap
··· 26 26 X = [{10, 2}, {1, 2}], 27 27 case X of 28 28 [First | Rest] when erlang:element(1, First) =:= Key -> 29 - <<"ok"/utf8>>; 29 + ~"ok"; 30 30 31 31 _ -> 32 - <<"ko"/utf8>> 32 + ~"ko" 33 33 end.
+4 -4
compiler-core/src/erlang/snapshots/gleam_core__erlang__tests__windows_file_escaping_bug.snap
··· 11 11 main() -> 12 12 erlang:error(#{ 13 13 gleam_error => panic, 14 - message => <<"`panic` expression evaluated."/utf8>>, 15 - file => <<"C:\\root\\project\\test\\my\\mod.gleam"/utf8>>, 16 - module => <<"my/mod"/utf8>>, 17 - function => <<"main"/utf8>>, 14 + message => ~"`panic` expression evaluated.", 15 + file => ~"C:\\root\\project\\test\\my\\mod.gleam", 16 + module => ~"my/mod", 17 + function => ~"main", 18 18 line => 1 19 19 }).
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_binary_operation.snap
··· 26 26 false -> 27 27 erlang:error(#{ 28 28 gleam_error => assert, 29 - message => <<"Assertion failed."/utf8>>, 30 - file => <<"project/test/my/mod.gleam"/utf8>>, 31 - module => <<"my/mod"/utf8>>, 32 - function => <<"main"/utf8>>, 29 + message => ~"Assertion failed.", 30 + file => ~"project/test/my/mod.gleam", 31 + module => ~"my/mod", 32 + function => ~"main", 33 33 line => 4, 34 34 kind => binary_operator, 35 35 operator => '||',
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_binary_operation2.snap
··· 24 24 false -> 25 25 erlang:error(#{ 26 26 gleam_error => assert, 27 - message => <<"Assertion failed."/utf8>>, 28 - file => <<"project/test/my/mod.gleam"/utf8>>, 29 - module => <<"my/mod"/utf8>>, 30 - function => <<"eq"/utf8>>, 27 + message => ~"Assertion failed.", 28 + file => ~"project/test/my/mod.gleam", 29 + module => ~"my/mod", 30 + function => ~"eq", 31 31 line => 3, 32 32 kind => binary_operator, 33 33 operator => '==',
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_binary_operation3.snap
··· 25 25 false -> 26 26 erlang:error(#{ 27 27 gleam_error => assert, 28 - message => <<"Assertion failed."/utf8>>, 29 - file => <<"project/test/my/mod.gleam"/utf8>>, 30 - module => <<"my/mod"/utf8>>, 31 - function => <<"assert_answer"/utf8>>, 28 + message => ~"Assertion failed.", 29 + file => ~"project/test/my/mod.gleam", 30 + module => ~"my/mod", 31 + function => ~"assert_answer", 32 32 line => 3, 33 33 kind => binary_operator, 34 34 operator => '==',
+8 -8
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_binary_operator_with_side_effects.snap
··· 37 37 false -> 38 38 erlang:error(#{ 39 39 gleam_error => assert, 40 - message => <<"Assertion failed."/utf8>>, 41 - file => <<"project/test/my/mod.gleam"/utf8>>, 42 - module => <<"my/mod"/utf8>>, 43 - function => <<"go"/utf8>>, 40 + message => ~"Assertion failed.", 41 + file => ~"project/test/my/mod.gleam", 42 + module => ~"my/mod", 43 + function => ~"go", 44 44 line => 8, 45 45 kind => binary_operator, 46 46 operator => '&&', ··· 65 65 false -> 66 66 erlang:error(#{ 67 67 gleam_error => assert, 68 - message => <<"Assertion failed."/utf8>>, 69 - file => <<"project/test/my/mod.gleam"/utf8>>, 70 - module => <<"my/mod"/utf8>>, 71 - function => <<"go"/utf8>>, 68 + message => ~"Assertion failed.", 69 + file => ~"project/test/my/mod.gleam", 70 + module => ~"my/mod", 71 + function => ~"go", 72 72 line => 8, 73 73 kind => binary_operator, 74 74 operator => '&&',
+8 -8
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_binary_operator_with_side_effects2.snap
··· 37 37 false -> 38 38 erlang:error(#{ 39 39 gleam_error => assert, 40 - message => <<"Assertion failed."/utf8>>, 41 - file => <<"project/test/my/mod.gleam"/utf8>>, 42 - module => <<"my/mod"/utf8>>, 43 - function => <<"go"/utf8>>, 40 + message => ~"Assertion failed.", 41 + file => ~"project/test/my/mod.gleam", 42 + module => ~"my/mod", 43 + function => ~"go", 44 44 line => 8, 45 45 kind => binary_operator, 46 46 operator => '&&', ··· 65 65 false -> 66 66 erlang:error(#{ 67 67 gleam_error => assert, 68 - message => <<"Assertion failed."/utf8>>, 69 - file => <<"project/test/my/mod.gleam"/utf8>>, 70 - module => <<"my/mod"/utf8>>, 71 - function => <<"go"/utf8>>, 68 + message => ~"Assertion failed.", 69 + file => ~"project/test/my/mod.gleam", 70 + module => ~"my/mod", 71 + function => ~"go", 72 72 line => 8, 73 73 kind => binary_operator, 74 74 operator => '&&',
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_function_call.snap
··· 33 33 false -> 34 34 erlang:error(#{ 35 35 gleam_error => assert, 36 - message => <<"Assertion failed."/utf8>>, 37 - file => <<"project/test/my/mod.gleam"/utf8>>, 38 - module => <<"my/mod"/utf8>>, 39 - function => <<"main"/utf8>>, 36 + message => ~"Assertion failed.", 37 + file => ~"project/test/my/mod.gleam", 38 + module => ~"my/mod", 39 + function => ~"main", 40 40 line => 7, 41 41 kind => function_call, 42 42 arguments => [],
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_function_call2.snap
··· 33 33 false -> 34 34 erlang:error(#{ 35 35 gleam_error => assert, 36 - message => <<"Assertion failed."/utf8>>, 37 - file => <<"project/test/my/mod.gleam"/utf8>>, 38 - module => <<"my/mod"/utf8>>, 39 - function => <<"go"/utf8>>, 36 + message => ~"Assertion failed.", 37 + file => ~"project/test/my/mod.gleam", 38 + module => ~"my/mod", 39 + function => ~"go", 40 40 line => 7, 41 41 kind => function_call, 42 42 arguments => [#{
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_literal.snap
··· 24 24 false -> 25 25 erlang:error(#{ 26 26 gleam_error => assert, 27 - message => <<"Assertion failed."/utf8>>, 28 - file => <<"project/test/my/mod.gleam"/utf8>>, 29 - module => <<"my/mod"/utf8>>, 30 - function => <<"main"/utf8>>, 27 + message => ~"Assertion failed.", 28 + file => ~"project/test/my/mod.gleam", 29 + module => ~"my/mod", 30 + function => ~"main", 31 31 line => 3, 32 32 kind => expression, 33 33 expression => #{
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_nested_function_call.snap
··· 34 34 false -> 35 35 erlang:error(#{ 36 36 gleam_error => assert, 37 - message => <<"Assertion failed."/utf8>>, 38 - file => <<"project/test/my/mod.gleam"/utf8>>, 39 - module => <<"my/mod"/utf8>>, 40 - function => <<"main"/utf8>>, 37 + message => ~"Assertion failed.", 38 + file => ~"project/test/my/mod.gleam", 39 + module => ~"my/mod", 40 + function => ~"main", 41 41 line => 7, 42 42 kind => function_call, 43 43 arguments => [#{
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_on_consts.snap
··· 27 27 false -> 28 28 erlang:error(#{ 29 29 gleam_error => assert, 30 - message => <<"Assertion failed."/utf8>>, 31 - file => <<"project/test/my/mod.gleam"/utf8>>, 32 - module => <<"my/mod"/utf8>>, 33 - function => <<"assert_answer"/utf8>>, 30 + message => ~"Assertion failed.", 31 + file => ~"project/test/my/mod.gleam", 32 + module => ~"my/mod", 33 + function => ~"assert_answer", 34 34 line => 6, 35 35 kind => binary_operator, 36 36 operator => '==',
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_variable.snap
··· 26 26 false -> 27 27 erlang:error(#{ 28 28 gleam_error => assert, 29 - message => <<"Assertion failed."/utf8>>, 30 - file => <<"project/test/my/mod.gleam"/utf8>>, 31 - module => <<"my/mod"/utf8>>, 32 - function => <<"main"/utf8>>, 29 + message => ~"Assertion failed.", 30 + file => ~"project/test/my/mod.gleam", 31 + module => ~"my/mod", 32 + function => ~"main", 33 33 line => 4, 34 34 kind => expression, 35 35 expression => #{
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_with_block_message.snap
··· 37 37 erlang:error(#{ 38 38 gleam_error => assert, 39 39 message => begin 40 - Message = identity(<<"This shouldn't fail"/utf8>>), 40 + Message = identity(~"This shouldn't fail"), 41 41 Message 42 42 end, 43 - file => <<"project/test/my/mod.gleam"/utf8>>, 44 - module => <<"my/mod"/utf8>>, 45 - function => <<"main"/utf8>>, 43 + file => ~"project/test/my/mod.gleam", 44 + module => ~"my/mod", 45 + function => ~"main", 46 46 line => 7, 47 47 kind => function_call, 48 48 arguments => [#{
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_with_message.snap
··· 24 24 false -> 25 25 erlang:error(#{ 26 26 gleam_error => assert, 27 - message => <<"This shouldn't fail"/utf8>>, 28 - file => <<"project/test/my/mod.gleam"/utf8>>, 29 - module => <<"my/mod"/utf8>>, 30 - function => <<"main"/utf8>>, 27 + message => ~"This shouldn't fail", 28 + file => ~"project/test/my/mod.gleam", 29 + module => ~"my/mod", 30 + function => ~"main", 31 31 line => 3, 32 32 kind => expression, 33 33 expression => #{
+8 -8
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__bit_array.snap
··· 34 34 _value -> 35 35 erlang:error(#{ 36 36 gleam_error => let_assert, 37 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 38 - file => <<"project/test/my/mod.gleam"/utf8>>, 39 - module => <<"my/mod"/utf8>>, 40 - function => <<"main"/utf8>>, 37 + message => ~"Pattern match failed, no pattern matched the value.", 38 + file => ~"project/test/my/mod.gleam", 39 + module => ~"my/mod", 40 + function => ~"main", 41 41 line => 6, 42 42 value => _value, 43 43 start => 173, ··· 50 50 _value@1 -> 51 51 erlang:error(#{ 52 52 gleam_error => let_assert, 53 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 54 - file => <<"project/test/my/mod.gleam"/utf8>>, 55 - module => <<"my/mod"/utf8>>, 56 - function => <<"main"/utf8>>, 53 + message => ~"Pattern match failed, no pattern matched the value.", 54 + file => ~"project/test/my/mod.gleam", 55 + module => ~"my/mod", 56 + function => ~"main", 57 57 line => 5, 58 58 value => _value@1, 59 59 start => 116,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__bit_array2.snap
··· 26 26 _value -> 27 27 erlang:error(#{ 28 28 gleam_error => let_assert, 29 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 30 - file => <<"project/test/my/mod.gleam"/utf8>>, 31 - module => <<"my/mod"/utf8>>, 32 - function => <<"main"/utf8>>, 29 + message => ~"Pattern match failed, no pattern matched the value.", 30 + file => ~"project/test/my/mod.gleam", 31 + module => ~"my/mod", 32 + function => ~"main", 33 33 line => 3, 34 34 value => _value, 35 35 start => 30,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__bit_array3.snap
··· 26 26 _value -> 27 27 erlang:error(#{ 28 28 gleam_error => let_assert, 29 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 30 - file => <<"project/test/my/mod.gleam"/utf8>>, 31 - module => <<"my/mod"/utf8>>, 32 - function => <<"main"/utf8>>, 29 + message => ~"Pattern match failed, no pattern matched the value.", 30 + file => ~"project/test/my/mod.gleam", 31 + module => ~"my/mod", 32 + function => ~"main", 33 33 line => 3, 34 34 value => _value, 35 35 start => 44,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__bit_array_declare_and_use_var.snap
··· 23 23 _value -> 24 24 erlang:error(#{ 25 25 gleam_error => let_assert, 26 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => <<"project/test/my/mod.gleam"/utf8>>, 28 - module => <<"my/mod"/utf8>>, 29 - function => <<"go"/utf8>>, 26 + message => ~"Pattern match failed, no pattern matched the value.", 27 + file => ~"project/test/my/mod.gleam", 28 + module => ~"my/mod", 29 + function => ~"go", 30 30 line => 2, 31 31 value => _value, 32 32 start => 17,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__bit_array_float.snap
··· 26 26 _value@1 -> 27 27 erlang:error(#{ 28 28 gleam_error => let_assert, 29 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 30 - file => <<"project/test/my/mod.gleam"/utf8>>, 31 - module => <<"my/mod"/utf8>>, 32 - function => <<"main"/utf8>>, 29 + message => ~"Pattern match failed, no pattern matched the value.", 30 + file => ~"project/test/my/mod.gleam", 31 + module => ~"my/mod", 32 + function => ~"main", 33 33 line => 4, 34 34 value => _value@1, 35 35 start => 117,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__block_in_pattern_size.snap
··· 24 24 _value@1 -> 25 25 erlang:error(#{ 26 26 gleam_error => let_assert, 27 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 28 - file => <<"project/test/my/mod.gleam"/utf8>>, 29 - module => <<"my/mod"/utf8>>, 30 - function => <<"main"/utf8>>, 27 + message => ~"Pattern match failed, no pattern matched the value.", 28 + file => ~"project/test/my/mod.gleam", 29 + module => ~"my/mod", 30 + function => ~"main", 31 31 line => 3, 32 32 value => _value@1, 33 33 start => 19,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__discard_utf8_pattern.snap
··· 23 23 _value@1 -> 24 24 erlang:error(#{ 25 25 gleam_error => let_assert, 26 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => <<"project/test/my/mod.gleam"/utf8>>, 28 - module => <<"my/mod"/utf8>>, 29 - function => <<"main"/utf8>>, 26 + message => ~"Pattern match failed, no pattern matched the value.", 27 + file => ~"project/test/my/mod.gleam", 28 + module => ~"my/mod", 29 + function => ~"main", 30 30 line => 3, 31 31 value => _value@1, 32 32 start => 21,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__multiplication_in_pattern_size_is_left_associative.snap
··· 30 30 _value@1 -> 31 31 erlang:error(#{ 32 32 gleam_error => let_assert, 33 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 34 - file => <<"project/test/my/mod.gleam"/utf8>>, 35 - module => <<"my/mod"/utf8>>, 36 - function => <<"main"/utf8>>, 33 + message => ~"Pattern match failed, no pattern matched the value.", 34 + file => ~"project/test/my/mod.gleam", 35 + module => ~"my/mod", 36 + function => ~"main", 37 37 line => 6, 38 38 value => _value@1, 39 39 start => 55,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__operator_in_pattern_size.snap
··· 24 24 _value@1 -> 25 25 erlang:error(#{ 26 26 gleam_error => let_assert, 27 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 28 - file => <<"project/test/my/mod.gleam"/utf8>>, 29 - module => <<"my/mod"/utf8>>, 30 - function => <<"main"/utf8>>, 27 + message => ~"Pattern match failed, no pattern matched the value.", 28 + file => ~"project/test/my/mod.gleam", 29 + module => ~"my/mod", 30 + function => ~"main", 31 31 line => 3, 32 32 value => _value@1, 33 33 start => 19,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__operator_in_pattern_size2.snap
··· 24 24 _value@1 -> 25 25 erlang:error(#{ 26 26 gleam_error => let_assert, 27 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 28 - file => <<"project/test/my/mod.gleam"/utf8>>, 29 - module => <<"my/mod"/utf8>>, 30 - function => <<"main"/utf8>>, 27 + message => ~"Pattern match failed, no pattern matched the value.", 28 + file => ~"project/test/my/mod.gleam", 29 + module => ~"my/mod", 30 + function => ~"main", 31 31 line => 3, 32 32 value => _value@1, 33 33 start => 19,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__operator_in_pattern_size3.snap
··· 26 26 _value@1 -> 27 27 erlang:error(#{ 28 28 gleam_error => let_assert, 29 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 30 - file => <<"project/test/my/mod.gleam"/utf8>>, 31 - module => <<"my/mod"/utf8>>, 32 - function => <<"main"/utf8>>, 29 + message => ~"Pattern match failed, no pattern matched the value.", 30 + file => ~"project/test/my/mod.gleam", 31 + module => ~"my/mod", 32 + function => ~"main", 33 33 line => 4, 34 34 value => _value@1, 35 35 start => 41,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__pattern_match_utf16_codepoint_little_endian.snap
··· 25 25 _value -> 26 26 erlang:error(#{ 27 27 gleam_error => let_assert, 28 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 29 - file => <<"project/test/my/mod.gleam"/utf8>>, 30 - module => <<"my/mod"/utf8>>, 31 - function => <<"go"/utf8>>, 28 + message => ~"Pattern match failed, no pattern matched the value.", 29 + file => ~"project/test/my/mod.gleam", 30 + module => ~"my/mod", 31 + function => ~"go", 32 32 line => 3, 33 33 value => _value, 34 34 start => 18,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__pattern_match_utf32_codepoint_little_endian.snap
··· 25 25 _value -> 26 26 erlang:error(#{ 27 27 gleam_error => let_assert, 28 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 29 - file => <<"project/test/my/mod.gleam"/utf8>>, 30 - module => <<"my/mod"/utf8>>, 31 - function => <<"go"/utf8>>, 28 + message => ~"Pattern match failed, no pattern matched the value.", 29 + file => ~"project/test/my/mod.gleam", 30 + module => ~"my/mod", 31 + function => ~"go", 32 32 line => 3, 33 33 value => _value, 34 34 start => 18,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__subtraction_in_pattern_size_is_left_associative.snap
··· 30 30 _value@1 -> 31 31 erlang:error(#{ 32 32 gleam_error => let_assert, 33 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 34 - file => <<"project/test/my/mod.gleam"/utf8>>, 35 - module => <<"my/mod"/utf8>>, 36 - function => <<"main"/utf8>>, 33 + message => ~"Pattern match failed, no pattern matched the value.", 34 + file => ~"project/test/my/mod.gleam", 35 + module => ~"my/mod", 36 + function => ~"main", 37 37 line => 6, 38 38 value => _value@1, 39 39 start => 56,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__unicode_bit_array_1.snap
··· 17 17 -file("project/test/my/mod.gleam", 2). 18 18 -spec main() -> bitstring(). 19 19 main() -> 20 - Emoji = <<"\x{1F600}"/utf8>>, 20 + Emoji = ~"\x{1F600}", 21 21 Arr = <<Emoji/binary>>.
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__unit_option_ignores_bytes.snap
··· 25 25 _value -> 26 26 erlang:error(#{ 27 27 gleam_error => let_assert, 28 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 29 - file => <<"project/test/my/mod.gleam"/utf8>>, 30 - module => <<"my/mod"/utf8>>, 31 - function => <<"main"/utf8>>, 28 + message => ~"Pattern match failed, no pattern matched the value.", 29 + file => ~"project/test/my/mod.gleam", 30 + module => ~"my/mod", 31 + function => ~"main", 32 32 line => 3, 33 33 value => _value, 34 34 start => 19,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__unit_option_ignores_bytes_regardless_of_order.snap
··· 25 25 _value -> 26 26 erlang:error(#{ 27 27 gleam_error => let_assert, 28 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 29 - file => <<"project/test/my/mod.gleam"/utf8>>, 30 - module => <<"my/mod"/utf8>>, 31 - function => <<"main"/utf8>>, 28 + message => ~"Pattern match failed, no pattern matched the value.", 29 + file => ~"project/test/my/mod.gleam", 30 + module => ~"my/mod", 31 + function => ~"main", 32 32 line => 3, 33 33 value => _value, 34 34 start => 19,
+3 -3
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__case__aliased_string_prefix_pattern_referenced_in_guard.snap
··· 21 21 -spec main(binary()) -> binary(). 22 22 main(X) -> 23 23 case X of 24 - <<"a"/utf8, _/binary>> when <<"a"/utf8>> =:= X -> 25 - Letter = <<"a"/utf8>>, 24 + <<"a"/utf8, _/binary>> when ~"a" =:= X -> 25 + Letter = ~"a", 26 26 Letter; 27 27 28 28 _ -> 29 - <<"wibble"/utf8>> 29 + ~"wibble" 30 30 end.
+3 -3
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__case__alternative_patter_with_string_alias.snap
··· 22 22 main(X) -> 23 23 case X of 24 24 <<"a"/utf8, _/binary>> -> 25 - Letter = <<"a"/utf8>>, 25 + Letter = ~"a", 26 26 Letter; 27 27 28 28 <<"b"/utf8, _/binary>> -> 29 - Letter = <<"b"/utf8>>, 29 + Letter = ~"b", 30 30 Letter; 31 31 32 32 _ -> 33 - <<"wibble"/utf8>> 33 + ~"wibble" 34 34 end.
+3 -3
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__case__nested_string_prefix_pattern_assigns_variable.snap
··· 23 23 go(X) -> 24 24 case X of 25 25 [<<"a"/utf8, Rest/binary>> | _] -> 26 - Letter = <<"a"/utf8>>, 26 + Letter = ~"a", 27 27 <<Letter/binary, Rest/binary>>; 28 28 29 29 [<<"b"/utf8, Rest/binary>> | _] -> 30 - Letter = <<"b"/utf8>>, 30 + Letter = ~"b", 31 31 <<Letter/binary, Rest/binary>>; 32 32 33 33 _ -> 34 - <<""/utf8>> 34 + ~"" 35 35 end.
+3 -3
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__case__string_prefix_pattern_assigns_variable.snap
··· 23 23 go(X) -> 24 24 case X of 25 25 <<"a"/utf8, Rest/binary>> -> 26 - Letter = <<"a"/utf8>>, 26 + Letter = ~"a", 27 27 <<Letter/binary, Rest/binary>>; 28 28 29 29 <<"b"/utf8, Rest/binary>> -> 30 - Letter = <<"b"/utf8>>, 30 + Letter = ~"b", 31 31 <<Letter/binary, Rest/binary>>; 32 32 33 33 _ -> 34 - <<""/utf8>> 34 + ~"" 35 35 end.
+5 -5
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__case__string_prefix_pattern_used_in_guard_assigns_variable.snap
··· 22 22 -spec go(binary()) -> binary(). 23 23 go(X) -> 24 24 case X of 25 - <<"a"/utf8, Rest/binary>> when <<"a"/utf8>> =:= <<"c"/utf8>> -> 26 - Letter = <<"a"/utf8>>, 25 + <<"a"/utf8, Rest/binary>> when ~"a" =:= ~"c" -> 26 + Letter = ~"a", 27 27 <<Letter/binary, Rest/binary>>; 28 28 29 - <<"b"/utf8, Rest/binary>> when <<"b"/utf8>> =:= <<"c"/utf8>> -> 30 - Letter = <<"b"/utf8>>, 29 + <<"b"/utf8, Rest/binary>> when ~"b" =:= ~"c" -> 30 + Letter = ~"b", 31 31 <<Letter/binary, Rest/binary>>; 32 32 33 33 _ -> 34 - <<""/utf8>> 34 + ~"" 35 35 end.
+5 -5
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__case__string_prefix_pattern_used_in_guard_assigns_variable_2.snap
··· 22 22 -spec go(binary()) -> binary(). 23 23 go(X) -> 24 24 case X of 25 - <<"a"/utf8, Rest/binary>> when (<<"a"/utf8>> =:= <<"c"/utf8>>) andalso (Rest =:= <<"b"/utf8>>) -> 26 - Letter = <<"a"/utf8>>, 25 + <<"a"/utf8, Rest/binary>> when (~"a" =:= ~"c") andalso (Rest =:= ~"b") -> 26 + Letter = ~"a", 27 27 <<Letter/binary, Rest/binary>>; 28 28 29 - <<"b"/utf8, Letter/binary>> when (Letter =:= <<"c"/utf8>>) andalso (<<"b"/utf8>> =:= <<"b"/utf8>>) -> 30 - Rest = <<"b"/utf8>>, 29 + <<"b"/utf8, Letter/binary>> when (Letter =:= ~"c") andalso (~"b" =:= ~"b") -> 30 + Rest = ~"b", 31 31 <<Letter/binary, Rest/binary>>; 32 32 33 33 _ -> 34 - <<""/utf8>> 34 + ~"" 35 35 end.
+3 -3
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__case__string_prefix_pattern_used_in_guard_assigns_variable_3.snap
··· 22 22 -spec go(binary()) -> nil. 23 23 go(X) -> 24 24 case X of 25 - <<"a"/utf8, _/binary>> when <<"a"/utf8>> =:= <<"c"/utf8>> -> 26 - Rest = <<"a"/utf8>>, 25 + <<"a"/utf8, _/binary>> when ~"a" =:= ~"c" -> 26 + Rest = ~"a", 27 27 nil; 28 28 29 - <<"b"/utf8, Rest/binary>> when Rest =:= <<"c"/utf8>> -> 29 + <<"b"/utf8, Rest/binary>> when Rest =:= ~"c" -> 30 30 nil; 31 31 32 32 _ ->
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__consts__const_generalise.snap
··· 29 29 -spec main() -> binary(). 30 30 main() -> 31 31 Num = identity(1), 32 - Word = identity(<<"Word"/utf8>>). 32 + Word = identity(~"Word").
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__documentation__backslashes_are_escaped_in_module_comment.snap
··· 12 12 -module(my@mod). 13 13 -compile([no_auto_import, nowarn_ignored, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]). 14 14 -export([main/0]). 15 - -moduledoc(<<" \\backslashes!\\"/utf8>>). 15 + -moduledoc(~" \\backslashes!\\"). 16 16 17 17 -file("project/test/my/mod.gleam", 4). 18 18 -spec main() -> integer().
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__documentation__backslashes_in_documentation_are_escaped.snap
··· 14 14 15 15 -file("project/test/my/mod.gleam", 3). 16 16 -spec documented() -> integer(). 17 - -doc(<<" \\hello\\"/utf8>>). 17 + -doc(~" \\hello\\"). 18 18 documented() -> 19 19 1.
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__documentation__double_quotes_are_escaped_in_module_comment.snap
··· 12 12 -module(my@mod). 13 13 -compile([no_auto_import, nowarn_ignored, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]). 14 14 -export([main/0]). 15 - -moduledoc(<<" \"quotes!\""/utf8>>). 15 + -moduledoc(~" \"quotes!\""). 16 16 17 17 -file("project/test/my/mod.gleam", 4). 18 18 -spec main() -> integer().
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__documentation__function_with_documentation.snap
··· 14 14 15 15 -file("project/test/my/mod.gleam", 3). 16 16 -spec documented() -> integer(). 17 - -doc(<<" Function doc!"/utf8>>). 17 + -doc(~" Function doc!"). 18 18 documented() -> 19 19 1.
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__documentation__function_with_multiline_documentation.snap
··· 16 16 17 17 -file("project/test/my/mod.gleam", 5). 18 18 -spec documented() -> integer(). 19 - -doc(<<" Function doc! 19 + -doc(~" Function doc! 20 20 Hello!! 21 - "/utf8>>). 21 + "). 22 22 documented() -> 23 23 1.
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__documentation__multi_line_module_comment.snap
··· 14 14 -module(my@mod). 15 15 -compile([no_auto_import, nowarn_ignored, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]). 16 16 -export([main/0]). 17 - -moduledoc(<<" Hello! This is a multi- 17 + -moduledoc(~" Hello! This is a multi- 18 18 line module comment. 19 - "/utf8>>). 19 + "). 20 20 21 21 -file("project/test/my/mod.gleam", 6). 22 22 -spec main() -> integer().
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__documentation__quotes_in_documentation_are_escaped.snap
··· 14 14 15 15 -file("project/test/my/mod.gleam", 3). 16 16 -spec documented() -> integer(). 17 - -doc(<<" \"hello\""/utf8>>). 17 + -doc(~" \"hello\""). 18 18 documented() -> 19 19 1.
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__documentation__single_line_module_comment.snap
··· 12 12 -module(my@mod). 13 13 -compile([no_auto_import, nowarn_ignored, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]). 14 14 -export([main/0]). 15 - -moduledoc(<<" Hello! This is a single line module comment."/utf8>>). 15 + -moduledoc(~" Hello! This is a single line module comment."). 16 16 17 17 -file("project/test/my/mod.gleam", 4). 18 18 -spec main() -> integer().
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_in_a_pipeline.snap
··· 27 27 -spec main() -> list(integer()). 28 28 main() -> 29 29 _pipe = [1, 2, 3], 30 - _pipe@1 = echo(_pipe, nil, <<"project/test/my/mod.gleam"/utf8>>, 4), 30 + _pipe@1 = echo(_pipe, nil, ~"project/test/my/mod.gleam", 4), 31 31 wibble(_pipe@1). 32 32 33 33 % ...omitted code from `templates/echo.erl`...
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_in_a_pipeline_with_message.snap
··· 27 27 -spec main() -> list(integer()). 28 28 main() -> 29 29 _pipe = [1, 2, 3], 30 - _pipe@1 = echo(_pipe, <<"message!!"/utf8>>, <<"project/test/my/mod.gleam"/utf8>>, 4), 30 + _pipe@1 = echo(_pipe, ~"message!!", ~"project/test/my/mod.gleam", 4), 31 31 wibble(_pipe@1). 32 32 33 33 % ...omitted code from `templates/echo.erl`...
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_block.snap
··· 23 23 echo(begin 24 24 nil, 25 25 1 26 - end, nil, <<"project/test/my/mod.gleam"/utf8>>, 3). 26 + end, nil, ~"project/test/my/mod.gleam", 3). 27 27 28 28 % ...omitted code from `templates/echo.erl`...
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_case_expression.snap
··· 22 22 echo(case 1 of 23 23 _ -> 24 24 2 25 - end, nil, <<"project/test/my/mod.gleam"/utf8>>, 3). 25 + end, nil, ~"project/test/my/mod.gleam", 3). 26 26 27 27 % ...omitted code from `templates/echo.erl`...
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_function_call.snap
··· 24 24 -file("project/test/my/mod.gleam", 2). 25 25 -spec main() -> integer(). 26 26 main() -> 27 - echo(wibble(1, 2), nil, <<"project/test/my/mod.gleam"/utf8>>, 3). 27 + echo(wibble(1, 2), nil, ~"project/test/my/mod.gleam", 3). 28 28 29 29 % ...omitted code from `templates/echo.erl`...
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_function_call_and_a_message.snap
··· 20 20 -file("project/test/my/mod.gleam", 7). 21 21 -spec message() -> binary(). 22 22 message() -> 23 - <<"Hello!"/utf8>>. 23 + ~"Hello!". 24 24 25 25 -file("project/test/my/mod.gleam", 6). 26 26 -spec wibble(integer(), integer()) -> integer(). ··· 30 30 -file("project/test/my/mod.gleam", 2). 31 31 -spec main() -> integer(). 32 32 main() -> 33 - echo(wibble(1, 2), message(), <<"project/test/my/mod.gleam"/utf8>>, 3). 33 + echo(wibble(1, 2), message(), ~"project/test/my/mod.gleam", 3). 34 34 35 35 % ...omitted code from `templates/echo.erl`...
+5 -5
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_panic.snap
··· 19 19 main() -> 20 20 echo(erlang:error(#{ 21 21 gleam_error => panic, 22 - message => <<"`panic` expression evaluated."/utf8>>, 23 - file => <<"project/test/my/mod.gleam"/utf8>>, 24 - module => <<"my/mod"/utf8>>, 25 - function => <<"main"/utf8>>, 22 + message => ~"`panic` expression evaluated.", 23 + file => ~"project/test/my/mod.gleam", 24 + module => ~"my/mod", 25 + function => ~"main", 26 26 line => 3 27 - }), nil, <<"project/test/my/mod.gleam"/utf8>>, 3). 27 + }), nil, ~"project/test/my/mod.gleam", 3). 28 28 29 29 % ...omitted code from `templates/echo.erl`...
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_simple_expression.snap
··· 17 17 -file("project/test/my/mod.gleam", 2). 18 18 -spec main() -> integer(). 19 19 main() -> 20 - echo(1, nil, <<"project/test/my/mod.gleam"/utf8>>, 3). 20 + echo(1, nil, ~"project/test/my/mod.gleam", 3). 21 21 22 22 % ...omitted code from `templates/echo.erl`...
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_simple_expression_and_a_message.snap
··· 17 17 -file("project/test/my/mod.gleam", 2). 18 18 -spec main() -> integer(). 19 19 main() -> 20 - echo(1, <<"hello!"/utf8>>, <<"project/test/my/mod.gleam"/utf8>>, 3). 20 + echo(1, ~"hello!", ~"project/test/my/mod.gleam", 3). 21 21 22 22 % ...omitted code from `templates/echo.erl`...
+5 -5
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_complex_expression_as_a_message.snap
··· 22 22 -file("project/test/my/mod.gleam", 9). 23 23 -spec name() -> binary(). 24 24 name() -> 25 - <<"Giacomo"/utf8>>. 25 + ~"Giacomo". 26 26 27 27 -file("project/test/my/mod.gleam", 2). 28 28 -spec main() -> integer(). 29 29 main() -> 30 30 echo(1, case name() of 31 - <<"Giacomo"/utf8>> -> 32 - <<"hello Jak!"/utf8>>; 31 + ~"Giacomo" -> 32 + ~"hello Jak!"; 33 33 34 34 _ -> 35 - <<"hello!"/utf8>> 36 - end, <<"project/test/my/mod.gleam"/utf8>>, 3). 35 + ~"hello!" 36 + end, ~"project/test/my/mod.gleam", 3). 37 37 38 38 % ...omitted code from `templates/echo.erl`...
+3 -3
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__multiple_echos_in_a_pipeline.snap
··· 30 30 -spec main() -> list(integer()). 31 31 main() -> 32 32 _pipe = [1, 2, 3], 33 - _pipe@1 = echo(_pipe, nil, <<"project/test/my/mod.gleam"/utf8>>, 4), 33 + _pipe@1 = echo(_pipe, nil, ~"project/test/my/mod.gleam", 4), 34 34 _pipe@2 = wibble(_pipe@1), 35 - _pipe@3 = echo(_pipe@2, nil, <<"project/test/my/mod.gleam"/utf8>>, 6), 35 + _pipe@3 = echo(_pipe@2, nil, ~"project/test/my/mod.gleam", 6), 36 36 _pipe@4 = wibble(_pipe@3), 37 - echo(_pipe@4, nil, <<"project/test/my/mod.gleam"/utf8>>, 8). 37 + echo(_pipe@4, nil, ~"project/test/my/mod.gleam", 8). 38 38 39 39 % ...omitted code from `templates/echo.erl`...
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__multiple_echos_inside_expression.snap
··· 18 18 -file("project/test/my/mod.gleam", 2). 19 19 -spec main() -> integer(). 20 20 main() -> 21 - echo(1, nil, <<"project/test/my/mod.gleam"/utf8>>, 3), 22 - echo(2, nil, <<"project/test/my/mod.gleam"/utf8>>, 4). 21 + echo(1, nil, ~"project/test/my/mod.gleam", 3), 22 + echo(2, nil, ~"project/test/my/mod.gleam", 4). 23 23 24 24 % ...omitted code from `templates/echo.erl`...
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__pipeline_printed_by_echo_is_wrapped_in_begin_end_block.snap
··· 31 31 _pipe = 123, 32 32 _pipe@1 = wibble(_pipe), 33 33 wibble(_pipe@1) 34 - end, nil, <<"project/test/my/mod.gleam"/utf8>>, 3). 34 + end, nil, ~"project/test/my/mod.gleam", 3). 35 35 36 36 % ...omitted code from `templates/echo.erl`...
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__record_update_printed_by_echo_is_wrapped_in_begin_end_block.snap
··· 23 23 -file("project/test/my/mod.gleam", 4). 24 24 -spec main() -> wobble(). 25 25 main() -> 26 - Wobble = {wobble, 1, <<"wobble"/utf8>>}, 27 - echo({wobble, 1, erlang:element(3, Wobble)}, nil, <<"project/test/my/mod.gleam"/utf8>>, 6). 26 + Wobble = {wobble, 1, ~"wobble"}, 27 + echo({wobble, 1, erlang:element(3, Wobble)}, nil, ~"project/test/my/mod.gleam", 6). 28 28 29 29 % ...omitted code from `templates/echo.erl`...
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__external_fn__attribute_javascript.snap
··· 20 20 one(X) -> 21 21 erlang:error(#{ 22 22 gleam_error => todo, 23 - message => <<"`todo` expression evaluated. This code has not yet been implemented."/utf8>>, 24 - file => <<"project/test/my/mod.gleam"/utf8>>, 25 - module => <<"my/mod"/utf8>>, 26 - function => <<"one"/utf8>>, 23 + message => ~"`todo` expression evaluated. This code has not yet been implemented.", 24 + file => ~"project/test/my/mod.gleam", 25 + module => ~"my/mod", 26 + function => ~"one", 27 27 line => 4 28 28 }).
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__external_fn__inlining_external_functions_from_another_module.snap
··· 17 17 -file("project/test/my/mod.gleam", 2). 18 18 -spec main() -> atom:atom_(). 19 19 main() -> 20 - erlang:binary_to_atom(<<"ok"/utf8>>). 20 + erlang:binary_to_atom(~"ok").
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__external_fn__unqualified_inlining_external_functions_from_another_module.snap
··· 17 17 -file("project/test/my/mod.gleam", 2). 18 18 -spec main() -> atom:atom_(). 19 19 main() -> 20 - erlang:binary_to_atom(<<"ok"/utf8>>). 20 + erlang:binary_to_atom(~"ok").
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__guards__clause_guards27.snap
··· 20 20 -file("project/test/my/mod.gleam", 2). 21 21 -spec main() -> integer(). 22 22 main() -> 23 - case <<"test"/utf8>> of 24 - X when X =:= <<"test"/utf8>> -> 23 + case ~"test" of 24 + X when X =:= ~"test" -> 25 25 1; 26 26 27 27 _ ->
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__guards__clause_guards32.snap
··· 21 21 -file("project/test/my/mod.gleam", 2). 22 22 -spec main() -> integer(). 23 23 main() -> 24 - Wibble = <<"wobble"/utf8>>, 24 + Wibble = ~"wobble", 25 25 case Wibble of 26 26 X when X =:= <<"wob"/utf8, "ble"/utf8>> -> 27 27 1;
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__guards__constants_in_guards.snap
··· 29 29 main(Arg) -> 30 30 _ = [1, 2, 3], 31 31 case Arg of 32 - {W, X, Y, Z} when (((W =:= {1, 2.0, <<"3"/utf8>>}) andalso (X =:= <<"constant value"/utf8>>)) andalso (Y > 3.14)) andalso (Z =:= 42) -> 32 + {W, X, Y, Z} when (((W =:= {1, 2.0, ~"3"}) andalso (X =:= ~"constant value")) andalso (Y > 3.14)) andalso (Z =:= 42) -> 33 33 1; 34 34 35 35 _ ->
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__guards__field_access.snap
··· 30 30 -file("project/test/my/mod.gleam", 6). 31 31 -spec main() -> binary(). 32 32 main() -> 33 - Given_name = <<"jack"/utf8>>, 34 - Raiden = {person, <<"raiden"/utf8>>, <<"jack"/utf8>>, 31}, 33 + Given_name = ~"jack", 34 + Raiden = {person, ~"raiden", ~"jack", 31}, 35 35 case Given_name of 36 36 Name when Name =:= erlang:element(3, Raiden) -> 37 - <<"It's jack"/utf8>>; 37 + ~"It's jack"; 38 38 39 39 _ -> 40 - <<"It's not jack"/utf8>> 40 + ~"It's not jack" 41 41 end.
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__guards__module_access.snap
··· 22 22 -file("project/test/my/mod.gleam", 3). 23 23 -spec main() -> boolean(). 24 24 main() -> 25 - Name = <<"Tony Stark"/utf8>>, 25 + Name = ~"Tony Stark", 26 26 case Name of 27 - N when N =:= erlang:element(2, {hero, <<"Tony Stark"/utf8>>}) -> 27 + N when N =:= erlang:element(2, {hero, ~"Tony Stark"}) -> 28 28 true; 29 29 30 30 _ ->
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__guards__module_list_access.snap
··· 22 22 -file("project/test/my/mod.gleam", 3). 23 23 -spec main() -> boolean(). 24 24 main() -> 25 - Names = [<<"Tony Stark"/utf8>>, <<"Bruce Wayne"/utf8>>], 25 + Names = [~"Tony Stark", ~"Bruce Wayne"], 26 26 case Names of 27 - N when N =:= [<<"Tony Stark"/utf8>>, <<"Bruce Wayne"/utf8>>] -> 27 + N when N =:= [~"Tony Stark", ~"Bruce Wayne"] -> 28 28 true; 29 29 30 30 _ ->
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__guards__module_nested_access.snap
··· 22 22 -file("project/test/my/mod.gleam", 3). 23 23 -spec main() -> boolean(). 24 24 main() -> 25 - Name = <<"Bruce Wayne"/utf8>>, 25 + Name = ~"Bruce Wayne", 26 26 case Name of 27 - N when N =:= erlang:element(2, erlang:element(2, {hero, {person, <<"Bruce Wayne"/utf8>>}})) -> 27 + N when N =:= erlang:element(2, erlang:element(2, {hero, {person, ~"Bruce Wayne"}})) -> 28 28 true; 29 29 30 30 _ ->
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__guards__module_string_access.snap
··· 22 22 -file("project/test/my/mod.gleam", 3). 23 23 -spec main() -> boolean(). 24 24 main() -> 25 - Name = <<"Tony Stark"/utf8>>, 25 + Name = ~"Tony Stark", 26 26 case Name of 27 - N when N =:= <<"Tony Stark"/utf8>> -> 27 + N when N =:= ~"Tony Stark" -> 28 28 true; 29 29 30 30 _ ->
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__guards__module_tuple_access.snap
··· 22 22 -file("project/test/my/mod.gleam", 3). 23 23 -spec main() -> boolean(). 24 24 main() -> 25 - Name = <<"Tony Stark"/utf8>>, 25 + Name = ~"Tony Stark", 26 26 case Name of 27 - N when N =:= erlang:element(2, {<<"ironman"/utf8>>, <<"Tony Stark"/utf8>>}) -> 27 + N when N =:= erlang:element(2, {~"ironman", ~"Tony Stark"}) -> 28 28 true; 29 29 30 30 _ ->
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__guards__only_guards.snap
··· 23 23 -spec main(binary()) -> integer(). 24 24 main(Arg) -> 25 25 case Arg of 26 - _ when Arg =:= <<"constant value"/utf8>> -> 26 + _ when Arg =:= ~"constant value" -> 27 27 1; 28 28 29 29 _ ->
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__inlining__inline_function_with_use_and_anonymous.snap
··· 24 24 true -> 25 25 erlang:error(#{ 26 26 gleam_error => panic, 27 - message => <<"Cannot divide by 0"/utf8>>, 28 - file => <<"project/test/my/mod.gleam"/utf8>>, 29 - module => <<"my/mod"/utf8>>, 30 - function => <<"divide"/utf8>>, 27 + message => ~"Cannot divide by 0", 28 + file => ~"project/test/my/mod.gleam", 29 + module => ~"my/mod", 30 + function => ~"divide", 31 31 line => 5 32 32 }); 33 33
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__inlining__inline_function_with_use_becomes_tail_recursive.snap
··· 26 26 From; 27 27 28 28 false -> 29 - echo(From, nil, <<"project/test/my/mod.gleam"/utf8>>, 6), 29 + echo(From, nil, ~"project/test/my/mod.gleam", 6), 30 30 count(From + 1, To) 31 31 end. 32 32
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__assignment_pattern.snap
··· 23 23 _value -> 24 24 erlang:error(#{ 25 25 gleam_error => let_assert, 26 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => <<"project/test/my/mod.gleam"/utf8>>, 28 - module => <<"my/mod"/utf8>>, 29 - function => <<"go"/utf8>>, 26 + message => ~"Pattern match failed, no pattern matched the value.", 27 + file => ~"project/test/my/mod.gleam", 28 + module => ~"my/mod", 29 + function => ~"go", 30 30 line => 2, 31 31 value => _value, 32 32 start => 16,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__bit_array_assignment_discard.snap
··· 25 25 _value -> 26 26 erlang:error(#{ 27 27 gleam_error => let_assert, 28 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 29 - file => <<"project/test/my/mod.gleam"/utf8>>, 30 - module => <<"my/mod"/utf8>>, 31 - function => <<"main"/utf8>>, 28 + message => ~"Pattern match failed, no pattern matched the value.", 29 + file => ~"project/test/my/mod.gleam", 30 + module => ~"my/mod", 31 + function => ~"main", 32 32 line => 3, 33 33 value => _value, 34 34 start => 19,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__bit_array_assignment_float.snap
··· 26 26 _value -> 27 27 erlang:error(#{ 28 28 gleam_error => let_assert, 29 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 30 - file => <<"project/test/my/mod.gleam"/utf8>>, 31 - module => <<"my/mod"/utf8>>, 32 - function => <<"main"/utf8>>, 29 + message => ~"Pattern match failed, no pattern matched the value.", 30 + file => ~"project/test/my/mod.gleam", 31 + module => ~"my/mod", 32 + function => ~"main", 33 33 line => 3, 34 34 value => _value, 35 35 start => 19,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__bit_array_assignment_int.snap
··· 26 26 _value -> 27 27 erlang:error(#{ 28 28 gleam_error => let_assert, 29 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 30 - file => <<"project/test/my/mod.gleam"/utf8>>, 31 - module => <<"my/mod"/utf8>>, 32 - function => <<"main"/utf8>>, 29 + message => ~"Pattern match failed, no pattern matched the value.", 30 + file => ~"project/test/my/mod.gleam", 31 + module => ~"my/mod", 32 + function => ~"main", 33 33 line => 3, 34 34 value => _value, 35 35 start => 19,
+5 -5
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__bit_array_assignment_string.snap
··· 20 20 main() -> 21 21 case <<"Hello, world!"/utf8>> of 22 22 <<"Hello, world!"/utf8>> -> 23 - Message = <<"Hello, world!"/utf8>>, 23 + Message = ~"Hello, world!", 24 24 Message; 25 25 26 26 _value -> 27 27 erlang:error(#{ 28 28 gleam_error => let_assert, 29 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 30 - file => <<"project/test/my/mod.gleam"/utf8>>, 31 - module => <<"my/mod"/utf8>>, 32 - function => <<"main"/utf8>>, 29 + message => ~"Pattern match failed, no pattern matched the value.", 30 + file => ~"project/test/my/mod.gleam", 31 + module => ~"my/mod", 32 + function => ~"main", 33 33 line => 3, 34 34 value => _value, 35 35 start => 19,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__bit_array_pattern.snap
··· 23 23 _value -> 24 24 erlang:error(#{ 25 25 gleam_error => let_assert, 26 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => <<"project/test/my/mod.gleam"/utf8>>, 28 - module => <<"my/mod"/utf8>>, 29 - function => <<"go"/utf8>>, 26 + message => ~"Pattern match failed, no pattern matched the value.", 27 + file => ~"project/test/my/mod.gleam", 28 + module => ~"my/mod", 29 + function => ~"go", 30 30 line => 2, 31 31 value => _value, 32 32 start => 16,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__constructor_pattern.snap
··· 23 23 _value -> 24 24 erlang:error(#{ 25 25 gleam_error => let_assert, 26 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => <<"project/test/my/mod.gleam"/utf8>>, 28 - module => <<"my/mod"/utf8>>, 29 - function => <<"go"/utf8>>, 26 + message => ~"Pattern match failed, no pattern matched the value.", 27 + file => ~"project/test/my/mod.gleam", 28 + module => ~"my/mod", 29 + function => ~"go", 30 30 line => 2, 31 31 value => _value, 32 32 start => 16,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__constructor_pattern_with_multiple_variables.snap
··· 31 31 _value -> 32 32 erlang:error(#{ 33 33 gleam_error => let_assert, 34 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 35 - file => <<"project/test/my/mod.gleam"/utf8>>, 36 - module => <<"my/mod"/utf8>>, 37 - function => <<"go"/utf8>>, 34 + message => ~"Pattern match failed, no pattern matched the value.", 35 + file => ~"project/test/my/mod.gleam", 36 + module => ~"my/mod", 37 + function => ~"go", 38 38 line => 7, 39 39 value => _value, 40 40 start => 59,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__float_pattern.snap
··· 22 22 _value@1 -> 23 23 erlang:error(#{ 24 24 gleam_error => let_assert, 25 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 26 - file => <<"project/test/my/mod.gleam"/utf8>>, 27 - module => <<"my/mod"/utf8>>, 28 - function => <<"go"/utf8>>, 25 + message => ~"Pattern match failed, no pattern matched the value.", 26 + file => ~"project/test/my/mod.gleam", 27 + module => ~"my/mod", 28 + function => ~"go", 29 29 line => 2, 30 30 value => _value@1, 31 31 start => 16,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__int_pattern.snap
··· 22 22 _value@1 -> 23 23 erlang:error(#{ 24 24 gleam_error => let_assert, 25 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 26 - file => <<"project/test/my/mod.gleam"/utf8>>, 27 - module => <<"my/mod"/utf8>>, 28 - function => <<"go"/utf8>>, 25 + message => ~"Pattern match failed, no pattern matched the value.", 26 + file => ~"project/test/my/mod.gleam", 27 + module => ~"my/mod", 28 + function => ~"go", 29 29 line => 2, 30 30 value => _value@1, 31 31 start => 16,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__let_assert_at_end_of_block.snap
··· 29 29 _value@1 -> 30 30 erlang:error(#{ 31 31 gleam_error => let_assert, 32 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 33 - file => <<"project/test/my/mod.gleam"/utf8>>, 34 - module => <<"my/mod"/utf8>>, 35 - function => <<"go"/utf8>>, 32 + message => ~"Pattern match failed, no pattern matched the value.", 33 + file => ~"project/test/my/mod.gleam", 34 + module => ~"my/mod", 35 + function => ~"go", 36 36 line => 5, 37 37 value => _value@1, 38 38 start => 53,
+5 -5
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__let_assert_should_not_use_redefined_variable.snap
··· 28 28 -file("project/test/my/mod.gleam", 6). 29 29 -spec main() -> {ok, {binary(), binary()}} | {error, binary()}. 30 30 main() -> 31 - String = <<"Hello, world!"/utf8>>, 32 - case split_once(String, <<"\n"/utf8>>) of 31 + String = ~"Hello, world!", 32 + case split_once(String, ~"\n") of 33 33 {ok, {Prefix, String@1}} = _value -> 34 34 _value; 35 35 ··· 37 37 erlang:error(#{ 38 38 gleam_error => let_assert, 39 39 message => <<"Failed to split: "/utf8, String/binary>>, 40 - file => <<"project/test/my/mod.gleam"/utf8>>, 41 - module => <<"my/mod"/utf8>>, 42 - function => <<"main"/utf8>>, 40 + file => ~"project/test/my/mod.gleam", 41 + module => ~"my/mod", 42 + function => ~"main", 43 43 line => 8, 44 44 value => _value@1, 45 45 start => 148,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__list_pattern.snap
··· 23 23 _value -> 24 24 erlang:error(#{ 25 25 gleam_error => let_assert, 26 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => <<"project/test/my/mod.gleam"/utf8>>, 28 - module => <<"my/mod"/utf8>>, 29 - function => <<"go"/utf8>>, 26 + message => ~"Pattern match failed, no pattern matched the value.", 27 + file => ~"project/test/my/mod.gleam", 28 + module => ~"my/mod", 29 + function => ~"go", 30 30 line => 2, 31 31 value => _value, 32 32 start => 16,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__list_pattern_with_multiple_variables.snap
··· 23 23 _value -> 24 24 erlang:error(#{ 25 25 gleam_error => let_assert, 26 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => <<"project/test/my/mod.gleam"/utf8>>, 28 - module => <<"my/mod"/utf8>>, 29 - function => <<"go"/utf8>>, 26 + message => ~"Pattern match failed, no pattern matched the value.", 27 + file => ~"project/test/my/mod.gleam", 28 + module => ~"my/mod", 29 + function => ~"go", 30 30 line => 2, 31 31 value => _value, 32 32 start => 16,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__message.snap
··· 25 25 _value -> 26 26 erlang:error(#{ 27 27 gleam_error => let_assert, 28 - message => <<"Oops, there was an error"/utf8>>, 29 - file => <<"project/test/my/mod.gleam"/utf8>>, 30 - module => <<"my/mod"/utf8>>, 31 - function => <<"unwrap_or_panic"/utf8>>, 28 + message => ~"Oops, there was an error", 29 + file => ~"project/test/my/mod.gleam", 30 + module => ~"my/mod", 31 + function => ~"unwrap_or_panic", 32 32 line => 3, 33 33 value => _value, 34 34 start => 35,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__more_than_one_var.snap
··· 23 23 _value -> 24 24 erlang:error(#{ 25 25 gleam_error => let_assert, 26 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => <<"project/test/my/mod.gleam"/utf8>>, 28 - module => <<"my/mod"/utf8>>, 29 - function => <<"go"/utf8>>, 26 + message => ~"Pattern match failed, no pattern matched the value.", 27 + file => ~"project/test/my/mod.gleam", 28 + module => ~"my/mod", 29 + function => ~"go", 30 30 line => 2, 31 31 value => _value, 32 32 start => 17,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__one_var.snap
··· 23 23 _value -> 24 24 erlang:error(#{ 25 25 gleam_error => let_assert, 26 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => <<"project/test/my/mod.gleam"/utf8>>, 28 - module => <<"my/mod"/utf8>>, 29 - function => <<"go"/utf8>>, 26 + message => ~"Pattern match failed, no pattern matched the value.", 27 + file => ~"project/test/my/mod.gleam", 28 + module => ~"my/mod", 29 + function => ~"go", 30 30 line => 2, 31 31 value => _value, 32 32 start => 16,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__pattern_let.snap
··· 23 23 _value -> 24 24 erlang:error(#{ 25 25 gleam_error => let_assert, 26 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => <<"project/test/my/mod.gleam"/utf8>>, 28 - module => <<"my/mod"/utf8>>, 29 - function => <<"go"/utf8>>, 26 + message => ~"Pattern match failed, no pattern matched the value.", 27 + file => ~"project/test/my/mod.gleam", 28 + module => ~"my/mod", 29 + function => ~"go", 30 30 line => 2, 31 31 value => _value, 32 32 start => 17,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__reference_earlier_segment.snap
··· 25 25 _value -> 26 26 erlang:error(#{ 27 27 gleam_error => let_assert, 28 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 29 - file => <<"project/test/my/mod.gleam"/utf8>>, 30 - module => <<"my/mod"/utf8>>, 31 - function => <<"main"/utf8>>, 28 + message => ~"Pattern match failed, no pattern matched the value.", 29 + file => ~"project/test/my/mod.gleam", 30 + module => ~"my/mod", 31 + function => ~"main", 32 32 line => 3, 33 33 value => _value, 34 34 start => 19,
+5 -5
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__string_pattern.snap
··· 16 16 -spec go() -> binary(). 17 17 go() -> 18 18 case <<"Hel"/utf8, "lo!"/utf8>> of 19 - <<"Hello!"/utf8>> = _value -> 19 + ~"Hello!" = _value -> 20 20 _value; 21 21 22 22 _value@1 -> 23 23 erlang:error(#{ 24 24 gleam_error => let_assert, 25 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 26 - file => <<"project/test/my/mod.gleam"/utf8>>, 27 - module => <<"my/mod"/utf8>>, 28 - function => <<"go"/utf8>>, 25 + message => ~"Pattern match failed, no pattern matched the value.", 26 + file => ~"project/test/my/mod.gleam", 27 + module => ~"my/mod", 28 + function => ~"go", 29 29 line => 2, 30 30 value => _value@1, 31 31 start => 16,
+5 -5
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__string_prefix_pattern.snap
··· 16 16 -file("project/test/my/mod.gleam", 1). 17 17 -spec go() -> binary(). 18 18 go() -> 19 - case <<"Hello John"/utf8>> of 19 + case ~"Hello John" of 20 20 <<"Hello "/utf8, Name/binary>> -> 21 21 Name; 22 22 23 23 _value -> 24 24 erlang:error(#{ 25 25 gleam_error => let_assert, 26 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => <<"project/test/my/mod.gleam"/utf8>>, 28 - module => <<"my/mod"/utf8>>, 29 - function => <<"go"/utf8>>, 26 + message => ~"Pattern match failed, no pattern matched the value.", 27 + file => ~"project/test/my/mod.gleam", 28 + module => ~"my/mod", 29 + function => ~"go", 30 30 line => 2, 31 31 value => _value, 32 32 start => 16,
+6 -6
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__string_prefix_pattern_with_prefix_binding.snap
··· 16 16 -file("project/test/my/mod.gleam", 1). 17 17 -spec go() -> {binary(), binary()}. 18 18 go() -> 19 - case <<"Hello John"/utf8>> of 19 + case ~"Hello John" of 20 20 <<"Hello "/utf8, Name/binary>> -> 21 - Greeting = <<"Hello "/utf8>>, 21 + Greeting = ~"Hello ", 22 22 {Greeting, Name}; 23 23 24 24 _value -> 25 25 erlang:error(#{ 26 26 gleam_error => let_assert, 27 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 28 - file => <<"project/test/my/mod.gleam"/utf8>>, 29 - module => <<"my/mod"/utf8>>, 30 - function => <<"go"/utf8>>, 27 + message => ~"Pattern match failed, no pattern matched the value.", 28 + file => ~"project/test/my/mod.gleam", 29 + module => ~"my/mod", 30 + function => ~"go", 31 31 line => 2, 32 32 value => _value, 33 33 start => 16,
+3 -3
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__variable_message.snap
··· 26 26 erlang:error(#{ 27 27 gleam_error => let_assert, 28 28 message => Message, 29 - file => <<"project/test/my/mod.gleam"/utf8>>, 30 - module => <<"my/mod"/utf8>>, 31 - function => <<"expect"/utf8>>, 29 + file => ~"project/test/my/mod.gleam", 30 + module => ~"my/mod", 31 + function => ~"expect", 32 32 line => 3, 33 33 value => _value, 34 34 start => 35,
+8 -8
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__variable_rewrites.snap
··· 26 26 _value -> 27 27 erlang:error(#{ 28 28 gleam_error => let_assert, 29 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 30 - file => <<"project/test/my/mod.gleam"/utf8>>, 31 - module => <<"my/mod"/utf8>>, 32 - function => <<"go"/utf8>>, 29 + message => ~"Pattern match failed, no pattern matched the value.", 30 + file => ~"project/test/my/mod.gleam", 31 + module => ~"my/mod", 32 + function => ~"go", 33 33 line => 3, 34 34 value => _value, 35 35 start => 43, ··· 42 42 _value@1 -> 43 43 erlang:error(#{ 44 44 gleam_error => let_assert, 45 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 46 - file => <<"project/test/my/mod.gleam"/utf8>>, 47 - module => <<"my/mod"/utf8>>, 48 - function => <<"go"/utf8>>, 45 + message => ~"Pattern match failed, no pattern matched the value.", 46 + file => ~"project/test/my/mod.gleam", 47 + module => ~"my/mod", 48 + function => ~"go", 49 49 line => 2, 50 50 value => _value@1, 51 51 start => 16,
+8 -8
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__numbers__numbers_with_underscores2.snap
··· 28 28 _value -> 29 29 erlang:error(#{ 30 30 gleam_error => let_assert, 31 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 32 - file => <<"project/test/my/mod.gleam"/utf8>>, 33 - module => <<"my/mod"/utf8>>, 34 - function => <<"main"/utf8>>, 31 + message => ~"Pattern match failed, no pattern matched the value.", 32 + file => ~"project/test/my/mod.gleam", 33 + module => ~"my/mod", 34 + function => ~"main", 35 35 line => 4, 36 36 value => _value, 37 37 start => 44, ··· 44 44 _value@1 -> 45 45 erlang:error(#{ 46 46 gleam_error => let_assert, 47 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 48 - file => <<"project/test/my/mod.gleam"/utf8>>, 49 - module => <<"my/mod"/utf8>>, 50 - function => <<"main"/utf8>>, 47 + message => ~"Pattern match failed, no pattern matched the value.", 48 + file => ~"project/test/my/mod.gleam", 49 + module => ~"my/mod", 50 + function => ~"main", 51 51 line => 3, 52 52 value => _value@1, 53 53 start => 19,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__panic__panic_as.snap
··· 19 19 main() -> 20 20 erlang:error(#{ 21 21 gleam_error => panic, 22 - message => <<"wibble"/utf8>>, 23 - file => <<"project/test/my/mod.gleam"/utf8>>, 24 - module => <<"my/mod"/utf8>>, 25 - function => <<"main"/utf8>>, 22 + message => ~"wibble", 23 + file => ~"project/test/my/mod.gleam", 24 + module => ~"my/mod", 25 + function => ~"main", 26 26 line => 3 27 27 }).
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__panic__panic_as_function.snap
··· 20 20 -file("project/test/my/mod.gleam", 2). 21 21 -spec retstring() -> binary(). 22 22 retstring() -> 23 - <<"wibble"/utf8>>. 23 + ~"wibble". 24 24 25 25 -file("project/test/my/mod.gleam", 5). 26 26 -spec main() -> any(). ··· 28 28 erlang:error(#{ 29 29 gleam_error => panic, 30 30 message => <<(retstring())/binary, "wobble"/utf8>>, 31 - file => <<"project/test/my/mod.gleam"/utf8>>, 32 - module => <<"my/mod"/utf8>>, 33 - function => <<"main"/utf8>>, 31 + file => ~"project/test/my/mod.gleam", 32 + module => ~"my/mod", 33 + function => ~"main", 34 34 line => 6 35 35 }).
+5 -5
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__panic__piped.snap
··· 18 18 -file("project/test/my/mod.gleam", 2). 19 19 -spec main() -> any(). 20 20 main() -> 21 - _pipe = <<"lets"/utf8>>, 21 + _pipe = ~"lets", 22 22 (erlang:error(#{ 23 23 gleam_error => panic, 24 - message => <<"`panic` expression evaluated."/utf8>>, 25 - file => <<"project/test/my/mod.gleam"/utf8>>, 26 - module => <<"my/mod"/utf8>>, 27 - function => <<"main"/utf8>>, 24 + message => ~"`panic` expression evaluated.", 25 + file => ~"project/test/my/mod.gleam", 26 + module => ~"my/mod", 27 + function => ~"main", 28 28 line => 4 29 29 }))(_pipe).
+9 -9
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__panic__piped_chain.snap
··· 19 19 -file("project/test/my/mod.gleam", 2). 20 20 -spec main() -> any(). 21 21 main() -> 22 - _pipe = <<"lets"/utf8>>, 22 + _pipe = ~"lets", 23 23 _pipe@1 = (erlang:error(#{ 24 24 gleam_error => panic, 25 - message => <<"pipe"/utf8>>, 26 - file => <<"project/test/my/mod.gleam"/utf8>>, 27 - module => <<"my/mod"/utf8>>, 28 - function => <<"main"/utf8>>, 25 + message => ~"pipe", 26 + file => ~"project/test/my/mod.gleam", 27 + module => ~"my/mod", 28 + function => ~"main", 29 29 line => 4 30 30 }))(_pipe), 31 31 (erlang:error(#{ 32 32 gleam_error => panic, 33 - message => <<"other panic"/utf8>>, 34 - file => <<"project/test/my/mod.gleam"/utf8>>, 35 - module => <<"my/mod"/utf8>>, 36 - function => <<"main"/utf8>>, 33 + message => ~"other panic", 34 + file => ~"project/test/my/mod.gleam", 35 + module => ~"my/mod", 36 + function => ~"main", 37 37 line => 5 38 38 }))(_pipe@1).
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__panic__plain.snap
··· 19 19 main() -> 20 20 erlang:error(#{ 21 21 gleam_error => panic, 22 - message => <<"`panic` expression evaluated."/utf8>>, 23 - file => <<"project/test/my/mod.gleam"/utf8>>, 24 - module => <<"my/mod"/utf8>>, 25 - function => <<"main"/utf8>>, 22 + message => ~"`panic` expression evaluated.", 23 + file => ~"project/test/my/mod.gleam", 24 + module => ~"my/mod", 25 + function => ~"main", 26 26 line => 3 27 27 }).
+6 -6
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__patterns__string_prefix_as_pattern_with_assertion.snap
··· 16 16 -file("project/test/my/mod.gleam", 1). 17 17 -spec a(any()) -> binary(). 18 18 a(X) -> 19 - case <<"wibble"/utf8>> of 19 + case ~"wibble" of 20 20 <<"a"/utf8, Rest/binary>> -> 21 - A = <<"a"/utf8>>, 21 + A = ~"a", 22 22 A; 23 23 24 24 _value -> 25 25 erlang:error(#{ 26 26 gleam_error => let_assert, 27 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 28 - file => <<"project/test/my/mod.gleam"/utf8>>, 29 - module => <<"my/mod"/utf8>>, 30 - function => <<"a"/utf8>>, 27 + message => ~"Pattern match failed, no pattern matched the value.", 28 + file => ~"project/test/my/mod.gleam", 29 + module => ~"my/mod", 30 + function => ~"a", 31 31 line => 2, 32 32 value => _value, 33 33 start => 16,
+3 -3
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__patterns__string_prefix_as_pattern_with_list.snap
··· 20 20 a(X) -> 21 21 case X of 22 22 [<<"a"/utf8, _/binary>>, <<"b"/utf8, _/binary>>] -> 23 - A = <<"a"/utf8>>, 24 - B = <<"b"/utf8>>, 23 + A = ~"a", 24 + B = ~"b", 25 25 <<A/binary, B/binary>>; 26 26 27 27 _ -> 28 - <<""/utf8>> 28 + ~"" 29 29 end.
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__patterns__string_prefix_as_pattern_with_multiple_subjects.snap
··· 20 20 a(X) -> 21 21 case {X, X} of 22 22 {_, <<"a"/utf8, _/binary>>} -> 23 - A = <<"a"/utf8>>, 23 + A = ~"a", 24 24 A; 25 25 26 26 {_, _} -> 27 - <<"a"/utf8>> 27 + ~"a" 28 28 end.
+3 -3
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__patterns__string_prefix_as_pattern_with_multiple_subjects_and_guard.snap
··· 19 19 -spec a(binary()) -> binary(). 20 20 a(X) -> 21 21 case {X, X} of 22 - {_, <<"a"/utf8, Rest/binary>>} when Rest =:= <<"a"/utf8>> -> 23 - A = <<"a"/utf8>>, 22 + {_, <<"a"/utf8, Rest/binary>>} when Rest =:= ~"a" -> 23 + A = ~"a", 24 24 A; 25 25 26 26 {_, _} -> 27 - <<"a"/utf8>> 27 + ~"a" 28 28 end.
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__records__const_record_update_generic_respecialization.snap
··· 27 27 -file("project/test/my/mod.gleam", 9). 28 28 -spec main() -> {box(integer()), box(binary())}. 29 29 main() -> 30 - {{box, <<"score"/utf8>>, 50}, {box, <<"score"/utf8>>, <<"Hello"/utf8>>}}. 30 + {{box, ~"score", 50}, {box, ~"score", ~"Hello"}}.
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__records__constant_record_update_with_unlabelled_fields.snap
··· 27 27 -file("project/test/my/mod.gleam", 9). 28 28 -spec main() -> wibble(). 29 29 main() -> 30 - {wibble, 1, 3.14, false, <<"Hello"/utf8>>}. 30 + {wibble, 1, 3.14, false, ~"Hello"}.
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__records__record_update_with_unlabelled_fields.snap
··· 25 25 -file("project/test/my/mod.gleam", 6). 26 26 -spec main() -> wibble(). 27 27 main() -> 28 - Record = {wibble, 1, 3.14, true, <<"Hello"/utf8>>}, 28 + Record = {wibble, 1, 3.14, true, ~"Hello"}, 29 29 {wibble, erlang:element(2, Record), erlang:element(3, Record), false, erlang:element(5, Record)}.
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__records__record_updates.snap
··· 24 24 -file("project/test/my/mod.gleam", 4). 25 25 -spec main() -> person(). 26 26 main() -> 27 - P = {person, <<"Quinn"/utf8>>, 27}, 27 + P = {person, ~"Quinn", 27}, 28 28 New_p = {person, erlang:element(2, P), 28}, 29 29 New_p.
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__records__record_updates1.snap
··· 24 24 -file("project/test/my/mod.gleam", 4). 25 25 -spec main() -> person(). 26 26 main() -> 27 - P = {person, <<"Quinn"/utf8>>, 27}, 27 + P = {person, ~"Quinn", 27}, 28 28 New_p = {person, erlang:element(2, P), erlang:element(3, P) + 1}, 29 29 New_p.
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__records__record_updates2.snap
··· 24 24 -file("project/test/my/mod.gleam", 4). 25 25 -spec main() -> person(). 26 26 main() -> 27 - P = {person, <<"Quinn"/utf8>>, 27}, 28 - New_p = {person, <<"Riley"/utf8>>, 28}, 27 + P = {person, ~"Quinn", 27}, 28 + New_p = {person, ~"Riley", 28}, 29 29 New_p.
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__records__record_updates3.snap
··· 27 27 -file("project/test/my/mod.gleam", 9). 28 28 -spec return_person() -> person(). 29 29 return_person() -> 30 - {person, <<"Quinn"/utf8>>, 27}. 30 + {person, ~"Quinn", 27}. 31 31 32 32 -file("project/test/my/mod.gleam", 4). 33 33 -spec main() -> person().
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__records__record_updates4.snap
··· 27 27 -file("project/test/my/mod.gleam", 5). 28 28 -spec main() -> person(). 29 29 main() -> 30 - Car = {car, <<"Amphicar"/utf8>>, <<"Model 770"/utf8>>, {person, <<"John Doe"/utf8>>, 27}}, 30 + Car = {car, ~"Amphicar", ~"Model 770", {person, ~"John Doe", 27}}, 31 31 New_p = begin 32 32 _record = erlang:element(4, Car), 33 33 {person, erlang:element(2, _record), 28}
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__ascii_as_unicode_escape_sequence.snap
··· 17 17 -file("project/test/my/mod.gleam", 2). 18 18 -spec y() -> binary(). 19 19 y() -> 20 - <<"\x{79}"/utf8>>. 20 + ~"\x{79}".
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__assert_string_prefix.snap
··· 25 25 _value -> 26 26 erlang:error(#{ 27 27 gleam_error => let_assert, 28 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 29 - file => <<"project/test/my/mod.gleam"/utf8>>, 30 - module => <<"my/mod"/utf8>>, 31 - function => <<"main"/utf8>>, 28 + message => ~"Pattern match failed, no pattern matched the value.", 29 + file => ~"project/test/my/mod.gleam", 30 + module => ~"my/mod", 31 + function => ~"main", 32 32 line => 3, 33 33 value => _value, 34 34 start => 20,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__assert_string_prefix_discar.snap
··· 24 24 _value@1 -> 25 25 erlang:error(#{ 26 26 gleam_error => let_assert, 27 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 28 - file => <<"project/test/my/mod.gleam"/utf8>>, 29 - module => <<"my/mod"/utf8>>, 30 - function => <<"main"/utf8>>, 27 + message => ~"Pattern match failed, no pattern matched the value.", 28 + file => ~"project/test/my/mod.gleam", 29 + module => ~"my/mod", 30 + function => ~"main", 31 31 line => 3, 32 32 value => _value@1, 33 33 start => 20,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__concat_constant_fn.snap
··· 23 23 -file("project/test/my/mod.gleam", 4). 24 24 -spec s() -> binary(). 25 25 s() -> 26 - <<"s"/utf8>>. 26 + ~"s". 27 27 28 28 -file("project/test/my/mod.gleam", 8). 29 29 -spec go() -> binary().
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__concat_function_call.snap
··· 21 21 -file("project/test/my/mod.gleam", 2). 22 22 -spec x() -> binary(). 23 23 x() -> 24 - <<""/utf8>>. 24 + ~"". 25 25 26 26 -file("project/test/my/mod.gleam", 6). 27 27 -spec go() -> binary().
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__not_unicode_escape_sequence.snap
··· 17 17 -file("project/test/my/mod.gleam", 2). 18 18 -spec not_unicode_escape_sequence() -> binary(). 19 19 not_unicode_escape_sequence() -> 20 - <<"\\u{03a9}"/utf8>>. 20 + ~"\\u{03a9}".
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__not_unicode_escape_sequence2.snap
··· 17 17 -file("project/test/my/mod.gleam", 2). 18 18 -spec not_unicode_escape_sequence() -> binary(). 19 19 not_unicode_escape_sequence() -> 20 - <<"\\\\u{03a9}"/utf8>>. 20 + ~"\\\\u{03a9}".
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__pipe_concat.snap
··· 27 27 -spec main() -> binary(). 28 28 main() -> 29 29 <<(begin 30 - _pipe = <<""/utf8>>, 30 + _pipe = ~"", 31 31 id(_pipe) 32 32 end)/binary, (begin 33 - _pipe@1 = <<""/utf8>>, 33 + _pipe@1 = ~"", 34 34 id(_pipe@1) 35 35 end)/binary>>.
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__rest_variable_rewriting.snap
··· 25 25 X@1; 26 26 27 27 _ -> 28 - <<"Unknown"/utf8>> 28 + ~"Unknown" 29 29 end.
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__string_prefix.snap
··· 25 25 Name; 26 26 27 27 _ -> 28 - <<"Unknown"/utf8>> 28 + ~"Unknown" 29 29 end.
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__string_prefix_assignment.snap
··· 22 22 go(X) -> 23 23 case X of 24 24 <<"Hello, "/utf8, Name/binary>> -> 25 - Greeting = <<"Hello, "/utf8>>, 25 + Greeting = ~"Hello, ", 26 26 Greeting; 27 27 28 28 _ -> 29 - <<"Unknown"/utf8>> 29 + ~"Unknown" 30 30 end.
+21 -21
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__string_prefix_assignment_not_unicode_escape_sequence.snap
··· 31 31 go(X) -> 32 32 _ = case X of 33 33 <<"\\u{9}"/utf8, Rest/binary>> -> 34 - Start = <<"\\u{9}"/utf8>>, 35 - <<"test"/utf8>>; 34 + Start = ~"\\u{9}", 35 + ~"test"; 36 36 37 37 <<"\\u{000009}"/utf8, Rest@1/binary>> -> 38 - Start@1 = <<"\\u{000009}"/utf8>>, 39 - <<"test"/utf8>>; 38 + Start@1 = ~"\\u{000009}", 39 + ~"test"; 40 40 41 41 <<"\\u{21}"/utf8, Rest@2/binary>> -> 42 - Start@2 = <<"\\u{21}"/utf8>>, 43 - <<"test"/utf8>>; 42 + Start@2 = ~"\\u{21}", 43 + ~"test"; 44 44 45 45 <<"\\u{100}"/utf8, Rest@3/binary>> -> 46 - Start@3 = <<"\\u{100}"/utf8>>, 47 - <<"test"/utf8>>; 46 + Start@3 = ~"\\u{100}", 47 + ~"test"; 48 48 49 49 <<"\\u{1000}"/utf8, Rest@4/binary>> -> 50 - Start@4 = <<"\\u{1000}"/utf8>>, 51 - <<"test"/utf8>>; 50 + Start@4 = ~"\\u{1000}", 51 + ~"test"; 52 52 53 53 <<"\\u{1F600}"/utf8, Rest@5/binary>> -> 54 - Start@5 = <<"\\u{1F600}"/utf8>>, 55 - <<"test"/utf8>>; 54 + Start@5 = ~"\\u{1F600}", 55 + ~"test"; 56 56 57 57 <<"\\u{1f600}"/utf8, Rest@6/binary>> -> 58 - Start@6 = <<"\\u{1f600}"/utf8>>, 59 - <<"test"/utf8>>; 58 + Start@6 = ~"\\u{1f600}", 59 + ~"test"; 60 60 61 61 <<"\\u{01F600}"/utf8, Rest@7/binary>> -> 62 - Start@7 = <<"\\u{01F600}"/utf8>>, 63 - <<"test"/utf8>>; 62 + Start@7 = ~"\\u{01F600}", 63 + ~"test"; 64 64 65 65 <<"\\u{01f600}"/utf8, Rest@8/binary>> -> 66 - Start@8 = <<"\\u{01f600}"/utf8>>, 67 - <<"test"/utf8>>; 66 + Start@8 = ~"\\u{01f600}", 67 + ~"test"; 68 68 69 69 <<"\\u{9} \\u{000009} \\u{21} \\u{100} \\u{1000} \\u{1F600} \\u{01F600}"/utf8, Rest@9/binary>> -> 70 - Start@9 = <<"\\u{9} \\u{000009} \\u{21} \\u{100} \\u{1000} \\u{1F600} \\u{01F600}"/utf8>>, 71 - <<"test"/utf8>>; 70 + Start@9 = ~"\\u{9} \\u{000009} \\u{21} \\u{100} \\u{1000} \\u{1F600} \\u{01F600}", 71 + ~"test"; 72 72 73 73 _ -> 74 - <<"Unknown"/utf8>> 74 + ~"Unknown" 75 75 end.
+35 -35
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__string_prefix_assignment_with_escape_sequences.snap
··· 38 38 go(X) -> 39 39 _ = case X of 40 40 <<"\f"/utf8, Rest/binary>> -> 41 - Start = <<"\f"/utf8>>, 42 - <<"test"/utf8>>; 41 + Start = ~"\f", 42 + ~"test"; 43 43 44 44 <<"\n"/utf8, Rest@1/binary>> -> 45 - Start@1 = <<"\n"/utf8>>, 46 - <<"test"/utf8>>; 45 + Start@1 = ~"\n", 46 + ~"test"; 47 47 48 48 <<"\r"/utf8, Rest@2/binary>> -> 49 - Start@2 = <<"\r"/utf8>>, 50 - <<"test"/utf8>>; 49 + Start@2 = ~"\r", 50 + ~"test"; 51 51 52 52 <<"\t"/utf8, Rest@3/binary>> -> 53 - Start@3 = <<"\t"/utf8>>, 54 - <<"test"/utf8>>; 53 + Start@3 = ~"\t", 54 + ~"test"; 55 55 56 56 <<"\""/utf8, Rest@4/binary>> -> 57 - Start@4 = <<"\""/utf8>>, 58 - <<"test"/utf8>>; 57 + Start@4 = ~"\"", 58 + ~"test"; 59 59 60 60 <<"\\"/utf8, Rest@5/binary>> -> 61 - Start@5 = <<"\\"/utf8>>, 62 - <<"test"/utf8>>; 61 + Start@5 = ~"\\", 62 + ~"test"; 63 63 64 64 <<"\f \n \r \t \" \\"/utf8, Rest@6/binary>> -> 65 - Start@6 = <<"\f \n \r \t \" \\"/utf8>>, 66 - <<"control chars with prefix assignment"/utf8>>; 65 + Start@6 = ~"\f \n \r \t \" \\", 66 + ~"control chars with prefix assignment"; 67 67 68 68 <<"\x{9}"/utf8, Rest@7/binary>> -> 69 - Start@7 = <<"\x{9}"/utf8>>, 70 - <<"test"/utf8>>; 69 + Start@7 = ~"\x{9}", 70 + ~"test"; 71 71 72 72 <<"\x{000009}"/utf8, Rest@8/binary>> -> 73 - Start@8 = <<"\x{000009}"/utf8>>, 74 - <<"test"/utf8>>; 73 + Start@8 = ~"\x{000009}", 74 + ~"test"; 75 75 76 76 <<"\x{21}"/utf8, Rest@9/binary>> -> 77 - Start@9 = <<"\x{21}"/utf8>>, 78 - <<"test"/utf8>>; 77 + Start@9 = ~"\x{21}", 78 + ~"test"; 79 79 80 80 <<"\x{100}"/utf8, Rest@10/binary>> -> 81 - Start@10 = <<"\x{100}"/utf8>>, 82 - <<"test"/utf8>>; 81 + Start@10 = ~"\x{100}", 82 + ~"test"; 83 83 84 84 <<"\x{1000}"/utf8, Rest@11/binary>> -> 85 - Start@11 = <<"\x{1000}"/utf8>>, 86 - <<"test"/utf8>>; 85 + Start@11 = ~"\x{1000}", 86 + ~"test"; 87 87 88 88 <<"\x{1F600}"/utf8, Rest@12/binary>> -> 89 - Start@12 = <<"\x{1F600}"/utf8>>, 90 - <<"test"/utf8>>; 89 + Start@12 = ~"\x{1F600}", 90 + ~"test"; 91 91 92 92 <<"\x{1f600}"/utf8, Rest@13/binary>> -> 93 - Start@13 = <<"\x{1f600}"/utf8>>, 94 - <<"test"/utf8>>; 93 + Start@13 = ~"\x{1f600}", 94 + ~"test"; 95 95 96 96 <<"\x{01F600}"/utf8, Rest@14/binary>> -> 97 - Start@14 = <<"\x{01F600}"/utf8>>, 98 - <<"test"/utf8>>; 97 + Start@14 = ~"\x{01F600}", 98 + ~"test"; 99 99 100 100 <<"\x{01f600}"/utf8, Rest@15/binary>> -> 101 - Start@15 = <<"\x{01f600}"/utf8>>, 102 - <<"test"/utf8>>; 101 + Start@15 = ~"\x{01f600}", 102 + ~"test"; 103 103 104 104 <<"\x{9} \x{000009} \x{21} \x{100} \x{1000} \x{1F600} \x{01F600}"/utf8, Rest@16/binary>> -> 105 - Start@16 = <<"\x{9} \x{000009} \x{21} \x{100} \x{1000} \x{1F600} \x{01F600}"/utf8>>, 106 - <<"test"/utf8>>; 105 + Start@16 = ~"\x{9} \x{000009} \x{21} \x{100} \x{1000} \x{1F600} \x{01F600}", 106 + ~"test"; 107 107 108 108 _ -> 109 - <<"Unknown"/utf8>> 109 + ~"Unknown" 110 110 end.
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__string_prefix_assignment_with_guard.snap
··· 22 22 -spec go(binary()) -> binary(). 23 23 go(X) -> 24 24 case X of 25 - <<"Hello, "/utf8, Name/binary>> when Name =:= <<"Dude"/utf8>> -> 26 - Greeting = <<"Hello, "/utf8>>, 25 + <<"Hello, "/utf8, Name/binary>> when Name =:= ~"Dude" -> 26 + Greeting = ~"Hello, ", 27 27 <<Greeting/binary, "Mate"/utf8>>; 28 28 29 29 <<"Hello, "/utf8, Name@1/binary>> -> 30 - Greeting@1 = <<"Hello, "/utf8>>, 30 + Greeting@1 = ~"Hello, ", 31 31 Greeting@1; 32 32 33 33 _ -> 34 - <<"Unknown"/utf8>> 34 + ~"Unknown" 35 35 end.
+3 -3
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__string_prefix_assignment_with_multiple_subjects.snap
··· 22 22 go(X) -> 23 23 case X of 24 24 <<"1"/utf8, _/binary>> -> 25 - Digit = <<"1"/utf8>>, 25 + Digit = ~"1", 26 26 Digit; 27 27 28 28 <<"2"/utf8, _/binary>> -> 29 - Digit = <<"2"/utf8>>, 29 + Digit = ~"2", 30 30 Digit; 31 31 32 32 _ -> 33 - <<"Unknown"/utf8>> 33 + ~"Unknown" 34 34 end.
+11 -11
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__string_prefix_not_unicode_escape_sequence.snap
··· 31 31 go(X) -> 32 32 _ = case X of 33 33 <<"\\u{9}"/utf8, Rest/binary>> -> 34 - <<"test"/utf8>>; 34 + ~"test"; 35 35 36 36 <<"\\u{000009}"/utf8, Rest@1/binary>> -> 37 - <<"test"/utf8>>; 37 + ~"test"; 38 38 39 39 <<"\\u{21}"/utf8, Rest@2/binary>> -> 40 - <<"test"/utf8>>; 40 + ~"test"; 41 41 42 42 <<"\\u{100}"/utf8, Rest@3/binary>> -> 43 - <<"test"/utf8>>; 43 + ~"test"; 44 44 45 45 <<"\\u{1000}"/utf8, Rest@4/binary>> -> 46 - <<"test"/utf8>>; 46 + ~"test"; 47 47 48 48 <<"\\u{1F600}"/utf8, Rest@5/binary>> -> 49 - <<"test"/utf8>>; 49 + ~"test"; 50 50 51 51 <<"\\u{1f600}"/utf8, Rest@6/binary>> -> 52 - <<"test"/utf8>>; 52 + ~"test"; 53 53 54 54 <<"\\u{01F600}"/utf8, Rest@7/binary>> -> 55 - <<"test"/utf8>>; 55 + ~"test"; 56 56 57 57 <<"\\u{01f600}"/utf8, Rest@8/binary>> -> 58 - <<"test"/utf8>>; 58 + ~"test"; 59 59 60 60 <<"\\u{9} \\u{000009} \\u{21} \\u{100} \\u{1000} \\u{1F600} \\u{01F600}"/utf8, Rest@9/binary>> -> 61 - <<"test"/utf8>>; 61 + ~"test"; 62 62 63 63 _ -> 64 - <<"Unknown"/utf8>> 64 + ~"Unknown" 65 65 end.
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__string_prefix_shadowing.snap
··· 22 22 go(X) -> 23 23 case X of 24 24 <<"Hello, "/utf8, Name/binary>> -> 25 - X@1 = <<"Hello, "/utf8>>, 25 + X@1 = ~"Hello, ", 26 26 X@1; 27 27 28 28 _ -> 29 - <<"Unknown"/utf8>> 29 + ~"Unknown" 30 30 end.
+18 -18
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__string_prefix_with_escape_sequences.snap
··· 38 38 go(X) -> 39 39 _ = case X of 40 40 <<"\f"/utf8, Rest/binary>> -> 41 - <<"test"/utf8>>; 41 + ~"test"; 42 42 43 43 <<"\n"/utf8, Rest@1/binary>> -> 44 - <<"test"/utf8>>; 44 + ~"test"; 45 45 46 46 <<"\r"/utf8, Rest@2/binary>> -> 47 - <<"test"/utf8>>; 47 + ~"test"; 48 48 49 49 <<"\t"/utf8, Rest@3/binary>> -> 50 - <<"test"/utf8>>; 50 + ~"test"; 51 51 52 52 <<"\""/utf8, Rest@4/binary>> -> 53 - <<"test"/utf8>>; 53 + ~"test"; 54 54 55 55 <<"\\"/utf8, Rest@5/binary>> -> 56 - <<"test"/utf8>>; 56 + ~"test"; 57 57 58 58 <<"\f \n \r \t \" \\"/utf8, Rest@6/binary>> -> 59 - <<"control chars with prefix assignment"/utf8>>; 59 + ~"control chars with prefix assignment"; 60 60 61 61 <<"\x{9}"/utf8, Rest@7/binary>> -> 62 - <<"test"/utf8>>; 62 + ~"test"; 63 63 64 64 <<"\x{000009}"/utf8, Rest@8/binary>> -> 65 - <<"test"/utf8>>; 65 + ~"test"; 66 66 67 67 <<"\x{21}"/utf8, Rest@9/binary>> -> 68 - <<"test"/utf8>>; 68 + ~"test"; 69 69 70 70 <<"\x{100}"/utf8, Rest@10/binary>> -> 71 - <<"test"/utf8>>; 71 + ~"test"; 72 72 73 73 <<"\x{1000}"/utf8, Rest@11/binary>> -> 74 - <<"test"/utf8>>; 74 + ~"test"; 75 75 76 76 <<"\x{1F600}"/utf8, Rest@12/binary>> -> 77 - <<"test"/utf8>>; 77 + ~"test"; 78 78 79 79 <<"\x{1f600}"/utf8, Rest@13/binary>> -> 80 - <<"test"/utf8>>; 80 + ~"test"; 81 81 82 82 <<"\x{01F600}"/utf8, Rest@14/binary>> -> 83 - <<"test"/utf8>>; 83 + ~"test"; 84 84 85 85 <<"\x{01f600}"/utf8, Rest@15/binary>> -> 86 - <<"test"/utf8>>; 86 + ~"test"; 87 87 88 88 <<"\x{9} \x{000009} \x{21} \x{100} \x{1000} \x{1F600} \x{01F600}"/utf8, Rest@16/binary>> -> 89 - <<"test"/utf8>>; 89 + ~"test"; 90 90 91 91 _ -> 92 - <<"Unknown"/utf8>> 92 + ~"Unknown" 93 93 end.
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__unicode1.snap
··· 17 17 -file("project/test/my/mod.gleam", 2). 18 18 -spec emoji() -> binary(). 19 19 emoji() -> 20 - <<"\x{1f600}"/utf8>>. 20 + ~"\x{1f600}".
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__unicode2.snap
··· 17 17 -file("project/test/my/mod.gleam", 2). 18 18 -spec y_with_dieresis() -> binary(). 19 19 y_with_dieresis() -> 20 - <<"\x{0308}y"/utf8>>. 20 + ~"\x{0308}y".
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__unicode3.snap
··· 17 17 -file("project/test/my/mod.gleam", 2). 18 18 -spec y_with_dieresis_with_slash() -> binary(). 19 19 y_with_dieresis_with_slash() -> 20 - <<"\\\x{0308}y"/utf8>>. 20 + ~"\\\x{0308}y".
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__unicode_escape_sequence_6_digits.snap
··· 17 17 -file("project/test/my/mod.gleam", 2). 18 18 -spec unicode_escape_sequence_6_digits() -> binary(). 19 19 unicode_escape_sequence_6_digits() -> 20 - <<"\x{10abcd}"/utf8>>. 20 + ~"\x{10abcd}".
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__todo__named.snap
··· 19 19 main() -> 20 20 erlang:error(#{ 21 21 gleam_error => todo, 22 - message => <<"testing"/utf8>>, 23 - file => <<"project/test/my/mod.gleam"/utf8>>, 24 - module => <<"my/mod"/utf8>>, 25 - function => <<"main"/utf8>>, 22 + message => ~"testing", 23 + file => ~"project/test/my/mod.gleam", 24 + module => ~"my/mod", 25 + function => ~"main", 26 26 line => 3 27 27 }).
+9 -9
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__todo__piped.snap
··· 19 19 -file("project/test/my/mod.gleam", 2). 20 20 -spec main() -> any(). 21 21 main() -> 22 - _pipe = <<"lets"/utf8>>, 22 + _pipe = ~"lets", 23 23 _pipe@1 = (erlang:error(#{ 24 24 gleam_error => todo, 25 - message => <<"pipe"/utf8>>, 26 - file => <<"project/test/my/mod.gleam"/utf8>>, 27 - module => <<"my/mod"/utf8>>, 28 - function => <<"main"/utf8>>, 25 + message => ~"pipe", 26 + file => ~"project/test/my/mod.gleam", 27 + module => ~"my/mod", 28 + function => ~"main", 29 29 line => 4 30 30 }))(_pipe), 31 31 (erlang:error(#{ 32 32 gleam_error => todo, 33 - message => <<"other todo"/utf8>>, 34 - file => <<"project/test/my/mod.gleam"/utf8>>, 35 - module => <<"my/mod"/utf8>>, 36 - function => <<"main"/utf8>>, 33 + message => ~"other todo", 34 + file => ~"project/test/my/mod.gleam", 35 + module => ~"my/mod", 36 + function => ~"main", 37 37 line => 5 38 38 }))(_pipe@1).
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__todo__plain.snap
··· 19 19 main() -> 20 20 erlang:error(#{ 21 21 gleam_error => todo, 22 - message => <<"`todo` expression evaluated. This code has not yet been implemented."/utf8>>, 23 - file => <<"project/test/my/mod.gleam"/utf8>>, 24 - module => <<"my/mod"/utf8>>, 25 - function => <<"main"/utf8>>, 22 + message => ~"`todo` expression evaluated. This code has not yet been implemented.", 23 + file => ~"project/test/my/mod.gleam", 24 + module => ~"my/mod", 25 + function => ~"main", 26 26 line => 3 27 27 }).
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__todo__todo_as.snap
··· 19 19 main() -> 20 20 erlang:error(#{ 21 21 gleam_error => todo, 22 - message => <<"wibble"/utf8>>, 23 - file => <<"project/test/my/mod.gleam"/utf8>>, 24 - module => <<"my/mod"/utf8>>, 25 - function => <<"main"/utf8>>, 22 + message => ~"wibble", 23 + file => ~"project/test/my/mod.gleam", 24 + module => ~"my/mod", 25 + function => ~"main", 26 26 line => 3 27 27 }).
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__todo__todo_as_function.snap
··· 20 20 -file("project/test/my/mod.gleam", 2). 21 21 -spec retstring() -> binary(). 22 22 retstring() -> 23 - <<"wibble"/utf8>>. 23 + ~"wibble". 24 24 25 25 -file("project/test/my/mod.gleam", 5). 26 26 -spec main() -> any(). ··· 28 28 erlang:error(#{ 29 29 gleam_error => todo, 30 30 message => <<(retstring())/binary, "wobble"/utf8>>, 31 - file => <<"project/test/my/mod.gleam"/utf8>>, 32 - module => <<"my/mod"/utf8>>, 33 - function => <<"main"/utf8>>, 31 + file => ~"project/test/my/mod.gleam", 32 + module => ~"my/mod", 33 + function => ~"main", 34 34 line => 6 35 35 }).
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__type_params__custom_type_named_args_count_once.snap
··· 26 26 wibble() -> 27 27 erlang:error(#{ 28 28 gleam_error => todo, 29 - message => <<"`todo` expression evaluated. This code has not yet been implemented."/utf8>>, 30 - file => <<"project/test/my/mod.gleam"/utf8>>, 31 - module => <<"my/mod"/utf8>>, 32 - function => <<"wibble"/utf8>>, 29 + message => ~"`todo` expression evaluated. This code has not yet been implemented.", 30 + file => ~"project/test/my/mod.gleam", 31 + module => ~"my/mod", 32 + function => ~"wibble", 33 33 line => 7 34 34 }).
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__type_params__custom_type_nested_named_args_count_once.snap
··· 26 26 wibble() -> 27 27 erlang:error(#{ 28 28 gleam_error => todo, 29 - message => <<"`todo` expression evaluated. This code has not yet been implemented."/utf8>>, 30 - file => <<"project/test/my/mod.gleam"/utf8>>, 31 - module => <<"my/mod"/utf8>>, 32 - function => <<"wibble"/utf8>>, 29 + message => ~"`todo` expression evaluated. This code has not yet been implemented.", 30 + file => ~"project/test/my/mod.gleam", 31 + module => ~"my/mod", 32 + function => ~"wibble", 33 33 line => 7 34 34 }).
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__type_params__custom_type_nested_result_type_count_once.snap
··· 26 26 wibble() -> 27 27 erlang:error(#{ 28 28 gleam_error => todo, 29 - message => <<"`todo` expression evaluated. This code has not yet been implemented."/utf8>>, 30 - file => <<"project/test/my/mod.gleam"/utf8>>, 31 - module => <<"my/mod"/utf8>>, 32 - function => <<"wibble"/utf8>>, 29 + message => ~"`todo` expression evaluated. This code has not yet been implemented.", 30 + file => ~"project/test/my/mod.gleam", 31 + module => ~"my/mod", 32 + function => ~"wibble", 33 33 line => 7 34 34 }).
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__type_params__custom_type_tuple_type_params_count_twice.snap
··· 26 26 wibble() -> 27 27 erlang:error(#{ 28 28 gleam_error => todo, 29 - message => <<"`todo` expression evaluated. This code has not yet been implemented."/utf8>>, 30 - file => <<"project/test/my/mod.gleam"/utf8>>, 31 - module => <<"my/mod"/utf8>>, 32 - function => <<"wibble"/utf8>>, 29 + message => ~"`todo` expression evaluated. This code has not yet been implemented.", 30 + file => ~"project/test/my/mod.gleam", 31 + module => ~"my/mod", 32 + function => ~"wibble", 33 33 line => 7 34 34 }).
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__type_params__nested_result_type_count_once.snap
··· 19 19 wibble() -> 20 20 erlang:error(#{ 21 21 gleam_error => todo, 22 - message => <<"`todo` expression evaluated. This code has not yet been implemented."/utf8>>, 23 - file => <<"project/test/my/mod.gleam"/utf8>>, 24 - module => <<"my/mod"/utf8>>, 25 - function => <<"wibble"/utf8>>, 22 + message => ~"`todo` expression evaluated. This code has not yet been implemented.", 23 + file => ~"project/test/my/mod.gleam", 24 + module => ~"my/mod", 25 + function => ~"wibble", 26 26 line => 3 27 27 }).
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__type_params__result_type_count_once.snap
··· 19 19 wibble() -> 20 20 erlang:error(#{ 21 21 gleam_error => todo, 22 - message => <<"`todo` expression evaluated. This code has not yet been implemented."/utf8>>, 23 - file => <<"project/test/my/mod.gleam"/utf8>>, 24 - module => <<"my/mod"/utf8>>, 25 - function => <<"wibble"/utf8>>, 22 + message => ~"`todo` expression evaluated. This code has not yet been implemented.", 23 + file => ~"project/test/my/mod.gleam", 24 + module => ~"my/mod", 25 + function => ~"wibble", 26 26 line => 3 27 27 }).
+8 -8
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__type_params__result_type_inferred_count_once.snap
··· 30 30 wobble() -> 31 31 erlang:error(#{ 32 32 gleam_error => todo, 33 - message => <<"`todo` expression evaluated. This code has not yet been implemented."/utf8>>, 34 - file => <<"project/test/my/mod.gleam"/utf8>>, 35 - module => <<"my/mod"/utf8>>, 36 - function => <<"wobble"/utf8>>, 33 + message => ~"`todo` expression evaluated. This code has not yet been implemented.", 34 + file => ~"project/test/my/mod.gleam", 35 + module => ~"my/mod", 36 + function => ~"wobble", 37 37 line => 11 38 38 }). 39 39 ··· 47 47 _value@1 -> 48 48 erlang:error(#{ 49 49 gleam_error => let_assert, 50 - message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 51 - file => <<"project/test/my/mod.gleam"/utf8>>, 52 - module => <<"my/mod"/utf8>>, 53 - function => <<"wibble"/utf8>>, 50 + message => ~"Pattern match failed, no pattern matched the value.", 51 + file => ~"project/test/my/mod.gleam", 52 + module => ~"my/mod", 53 + function => ~"wibble", 54 54 line => 3, 55 55 value => _value@1, 56 56 start => 39,
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__type_params__tuple_type_params_count_twice.snap
··· 19 19 wibble() -> 20 20 erlang:error(#{ 21 21 gleam_error => todo, 22 - message => <<"`todo` expression evaluated. This code has not yet been implemented."/utf8>>, 23 - file => <<"project/test/my/mod.gleam"/utf8>>, 24 - module => <<"my/mod"/utf8>>, 25 - function => <<"wibble"/utf8>>, 22 + message => ~"`todo` expression evaluated. This code has not yet been implemented.", 23 + file => ~"project/test/my/mod.gleam", 24 + module => ~"my/mod", 25 + function => ~"wibble", 26 26 line => 3 27 27 }).
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__use___arity_3.snap
··· 29 29 -file("project/test/my/mod.gleam", 2). 30 30 -spec main() -> {float(), binary(), integer()}. 31 31 main() -> 32 - trip(1.0, <<""/utf8>>, fun() -> 32 + trip(1.0, ~"", fun() -> 33 33 123 34 34 end).
+4 -4
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__use___no_callback_body.snap
··· 24 24 Thingy(fun() -> 25 25 erlang:error(#{ 26 26 gleam_error => todo, 27 - message => <<"`todo` expression evaluated. This code has not yet been implemented."/utf8>>, 28 - file => <<"project/test/my/mod.gleam"/utf8>>, 29 - module => <<"my/mod"/utf8>>, 30 - function => <<"main"/utf8>>, 27 + message => ~"`todo` expression evaluated. This code has not yet been implemented.", 28 + file => ~"project/test/my/mod.gleam", 29 + module => ~"my/mod", 30 + function => ~"main", 31 31 line => 4 32 32 }) 33 33 end).
+1 -1
erlang-abstract-format/src/lib.rs
··· 3386 3386 { 3387 3387 self.code.push_str(&format!("\"{content}\"")) 3388 3388 } else { 3389 - self.code.push_str(&format!("<<\"{content}\"/utf8>>",)); 3389 + self.code.push_str(&format!("~\"{content}\"",)); 3390 3390 } 3391 3391 } 3392 3392
+1 -1
test-package-compiler/src/snapshots/test_package_compiler__generated_tests__empty_module_warning.snap
··· 59 59 -file("src/public.gleam", 4). 60 60 -spec main() -> binary(). 61 61 main() -> 62 - <<"This module has public definitions"/utf8>>. 62 + ~"This module has public definitions". 63 63 64 64 65 65
+1 -1
test-package-compiler/src/snapshots/test_package_compiler__generated_tests__erlang_nested.snap
··· 16 16 -file("src/one/two.gleam", 4). 17 17 -spec main() -> binary(). 18 18 main() -> 19 - <<"Hi there"/utf8>>. 19 + ~"Hi there". 20 20 21 21 22 22
+1 -1
test-package-compiler/src/snapshots/test_package_compiler__generated_tests__hello_joe.snap
··· 16 16 -file("src/hello_joe.gleam", 4). 17 17 -spec main() -> binary(). 18 18 main() -> 19 - <<"Hello, Joe!"/utf8>>. 19 + ~"Hello, Joe!". 20 20 21 21 22 22
+1 -1
test-package-compiler/src/snapshots/test_package_compiler__generated_tests__import_shadowed_name_warning.snap
··· 28 28 -compile([no_auto_import, nowarn_ignored, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]). 29 29 -export([use_type/1]). 30 30 -export_type([shadowing/0]). 31 - -moduledoc(<<" https://github.com/gleam-lang/otp/pull/22"/utf8>>). 31 + -moduledoc(~" https://github.com/gleam-lang/otp/pull/22"). 32 32 33 33 -type shadowing() :: port. 34 34
+3 -3
test-package-compiler/src/snapshots/test_package_compiler__generated_tests__imported_constants.snap
··· 64 64 65 65 -file("src/two.gleam", 48). 66 66 -spec accessors(one:user()) -> {binary(), integer()}. 67 - -doc(<<" For these statements we use the accessors for the record from the other 68 - module"/utf8>>). 67 + -doc(~" For these statements we use the accessors for the record from the other 68 + module"). 69 69 accessors(User) -> 70 70 Name = erlang:element(2, User), 71 71 Score = erlang:element(3, User), ··· 73 73 74 74 -file("src/two.gleam", 55). 75 75 -spec destructure_qualified(one:user()) -> {binary(), integer()}. 76 - -doc(<<" For these statements we use destructure the record"/utf8>>). 76 + -doc(~" For these statements we use destructure the record"). 77 77 destructure_qualified(User) -> 78 78 {user, Name, Score} = User, 79 79 {Name, Score}.
+8 -8
test-package-compiler/src/snapshots/test_package_compiler__generated_tests__imported_record_constructors.snap
··· 93 93 94 94 -file("src/two.gleam", 61). 95 95 -spec accessors(one@one:user()) -> {binary(), integer()}. 96 - -doc(<<" For these statements we use the accessors for the record from the other 97 - module"/utf8>>). 96 + -doc(~" For these statements we use the accessors for the record from the other 97 + module"). 98 98 accessors(User) -> 99 99 Name = erlang:element(2, User), 100 100 Score = erlang:element(3, User), ··· 102 102 103 103 -file("src/two.gleam", 68). 104 104 -spec destructure_qualified(one@one:user()) -> {binary(), integer()}. 105 - -doc(<<" For these statements we use destructure the record"/utf8>>). 105 + -doc(~" For these statements we use destructure the record"). 106 106 destructure_qualified(User) -> 107 107 {user, Name, Score} = User, 108 108 {Name, Score}. ··· 127 127 128 128 -file("src/two.gleam", 89). 129 129 -spec update_qualified(one@one:user()) -> one@one:user(). 130 - -doc(<<" For these statements we use update the record"/utf8>>). 130 + -doc(~" For these statements we use update the record"). 131 131 update_qualified(User) -> 132 - {user, <<"wibble"/utf8>>, erlang:element(3, User)}. 132 + {user, ~"wibble", erlang:element(3, User)}. 133 133 134 134 -file("src/two.gleam", 93). 135 135 -spec update_qualified_aliased(one@two:user()) -> one@two:user(). 136 136 update_qualified_aliased(User) -> 137 - {user, <<"wibble"/utf8>>, erlang:element(3, User)}. 137 + {user, ~"wibble", erlang:element(3, User)}. 138 138 139 139 -file("src/two.gleam", 97). 140 140 -spec update_unqualified(one@one:user()) -> one@one:user(). 141 141 update_unqualified(User) -> 142 - {user, <<"wibble"/utf8>>, erlang:element(3, User)}. 142 + {user, ~"wibble", erlang:element(3, User)}. 143 143 144 144 -file("src/two.gleam", 101). 145 145 -spec update_aliased(one@one:user()) -> one@one:user(). 146 146 update_aliased(User) -> 147 - {user, <<"wibble"/utf8>>, erlang:element(3, User)}. 147 + {user, ~"wibble", erlang:element(3, User)}. 148 148 149 149 150 150