We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3ec014f + c19e3d0 commit e208237Copy full SHA for e208237
lib/elixir/test/elixir/kernel/sigils_test.exs
@@ -65,6 +65,11 @@ defmodule Kernel.SigilsTest do
65
66
bad_modifier = quote do: %w(foo bar baz)x
67
assert ArgumentError[] = catch_error(Code.eval_quoted(bad_modifier))
68
+
69
+ assert %w(Foo Bar)a == [:"Foo", :"Bar"]
70
+ assert %w(Foo.#{Bar}.Baz)a == [:"Foo.Elixir.Bar.Baz"]
71
+ assert %w(Foo.Bar)b == ["Foo.Bar"]
72
+ assert %w(Foo.#{Bar})c == ['Foo.Elixir.Bar']
73
end
74
75
test :__W__ do
@@ -82,5 +87,8 @@ defmodule Kernel.SigilsTest do
82
87
83
88
bad_modifier = quote do: %W(foo bar baz)x
84
89
90
91
+ assert %W(Foo #{Bar})a == [:"Foo", :"\#{Bar}"]
92
+ assert %W(Foo.Bar.Baz)a == [:"Foo.Bar.Baz"]
85
93
86
94
0 commit comments