File tree Expand file tree Collapse file tree 2 files changed +27
-15
lines changed Expand file tree Collapse file tree 2 files changed +27
-15
lines changed Original file line number Diff line number Diff line change 47
47
expect ( s ) . to include_elixir_syntax ( 'elixirAtom' , 'do' )
48
48
expect ( s ) . to include_elixir_syntax ( 'elixirAtom' , 'into' )
49
49
end
50
+
51
+ it 'defoverridable' do
52
+ expect ( <<~EOF ) . to include_elixir_syntax ( 'elixirAtom' , 'init:' )
53
+ defmodule Test do
54
+ defmacro __using__(_options) do
55
+ quote do
56
+ def init(args) do
57
+ {:ok, args}
58
+ end
59
+ defoverridable init: 1
60
+ end
61
+ end
62
+ end
63
+ EOF
64
+ expect ( <<~EOF ) . to include_elixir_syntax ( 'elixirAtom' , 'init:' )
65
+ defmodule Test do
66
+ defmacro __using__(_options) do
67
+ quote do
68
+ def init(args) do
69
+ {:ok, args}
70
+ end
71
+ defoverridable [init: 1]
72
+ end
73
+ end
74
+ end
75
+ EOF
76
+ end
50
77
end
Original file line number Diff line number Diff line change 14
14
case true do
15
15
EOF
16
16
end
17
-
18
- it 'defoverridable' do
19
- expect ( <<~EOF ) . to include_elixir_syntax ( 'elixirKeyword' , 'init:' )
20
- defmodule Test do
21
- defmacro __using__(_options) do
22
- quote do
23
- def init(args) do
24
- {:ok, args}
25
- end
26
- defoverridable init: 1
27
- end
28
- end
29
- end
30
- EOF
31
- end
32
17
end
You can’t perform that action at this time.
0 commit comments