File tree Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Original file line number Diff line number Diff line change 15
15
EOF
16
16
end
17
17
end
18
-
19
- describe 'Guard syntax' do
20
- pending 'guard in function' do
21
- expect ( <<~EOF ) . to include_elixir_syntax ( 'elixirKeyword' , 'is_atom' )
22
- def fun(a) when is_atom(a), do:
23
- EOF
24
- end
25
-
26
- pending 'guard in if' do
27
- expect ( <<~EOF ) . to include_elixir_syntax ( 'elixirKeyword' , 'is_atom' )
28
- if is_atom(:atom), do: true
29
- EOF
30
- end
31
-
32
- pending 'guard in case' do
33
- expect ( <<~EOF ) . to include_elixir_syntax ( 'elixirKeyword' , 'is_atom' )
34
- case true do
35
- true when is_atom(:atom) -> true
36
- end
37
- EOF
38
- end
39
-
40
- pending 'guard in case (multiline)' do
41
- expect ( <<~EOF ) . to include_elixir_syntax ( 'elixirKeyword' , 'is_atom' )
42
- case true do
43
- true when is_boolean(true) and
44
- is_atom(:atom) -> true
45
- end
46
- EOF
47
- end
48
- end
You can’t perform that action at this time.
0 commit comments