Skip to content

Commit 00e9ddc

Browse files
committed
Add test for call with thai atom, close #13951
1 parent e3f017d commit 00e9ddc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/elixir/test/elixir/kernel/string_tokenizer_test.exs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ defmodule Kernel.StringTokenizerTest do
7070
assert {:error, _} = Code.string_to_quoted("Ola!")
7171
end
7272

73+
test "tokenizes calls with thai atom" do
74+
assert {{:., _, [:foo, :บูมเมอแรง]}, _, []} =
75+
Code.string_to_quoted!(":foo.บูมเมอแรง()")
76+
77+
assert {{:., _, [:foo, :บูมเมอแรง]}, _, []} =
78+
Code.string_to_quoted!(":foo.\"บูมเมอแรง\"()")
79+
end
80+
7381
describe "script mixing" do
7482
test "prevents Restricted codepoints in identifiers" do
7583
exception = assert_raise SyntaxError, fn -> Code.string_to_quoted!("_shibㅤ = 1") end

0 commit comments

Comments
 (0)