Skip to content

Commit 4c1dc82

Browse files
bcpeinhardtlpil
authored andcommitted
use more recognizeable character in test
1 parent 8591697 commit 4c1dc82

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

compiler-core/src/erlang/tests/bit_arrays.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,9 @@ fn unicode_character_encoding() {
320320
assert_erl!(
321321
"
322322
pub fn main() -> Nil {
323-
let foo = <<\"\\u{feff}foo\":utf8>>
323+
let foo = <<\"\\u{00A9}foo\":utf8>>
324324
let _bits = case foo {
325-
<<\"\\u{feff}\":utf8, rest: bits>> -> rest
325+
<<\"\\u{00A9}\":utf8, rest: bits>> -> rest
326326
_ -> foo
327327
}
328328
Nil

compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__unicode_character_encoding.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
source: compiler-core/src/erlang/tests/bit_arrays.rs
3-
expression: "\npub fn main() -> Nil {\n let foo = <<\"\\u{feff}foo\":utf8>>\n let _bits = case foo {\n <<\"\\u{feff}\":utf8, rest: bits>> -> rest\n _ -> foo\n }\n Nil\n}\n"
3+
expression: "\npub fn main() -> Nil {\n let foo = <<\"\\u{00A9}foo\":utf8>>\n let _bits = case foo {\n <<\"\\u{00A9}\":utf8, rest: bits>> -> rest\n _ -> foo\n }\n Nil\n}\n"
44
---
55
----- SOURCE CODE
66

77
pub fn main() -> Nil {
8-
let foo = <<"\u{feff}foo":utf8>>
8+
let foo = <<"\u{00A9}foo":utf8>>
99
let _bits = case foo {
10-
<<"\u{feff}":utf8, rest: bits>> -> rest
10+
<<"\u{00A9}":utf8, rest: bits>> -> rest
1111
_ -> foo
1212
}
1313
Nil
@@ -23,9 +23,9 @@ pub fn main() -> Nil {
2323
-file("project/test/my/mod.gleam", 2).
2424
-spec main() -> nil.
2525
main() ->
26-
Foo = <<"\x{feff}foo"/utf8>>,
26+
Foo = <<"\x{00A9}foo"/utf8>>,
2727
_ = case Foo of
28-
<<"\x{feff}"/utf8, Rest/bitstring>> ->
28+
<<"\x{00A9}"/utf8, Rest/bitstring>> ->
2929
Rest;
3030

3131
_ ->

0 commit comments

Comments
 (0)