File tree Expand file tree Collapse file tree 4 files changed +30
-30
lines changed
Expand file tree Collapse file tree 4 files changed +30
-30
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ def some_func do
197197 defmodule Hello do
198198 def hello do
199199 case word do
200- :yo -> :dawg
200+ :one -> :two
201201 :high -> :low
202202 end
203203 end
@@ -208,7 +208,7 @@ def hello do
208208 defmodule Hello do
209209 def hello do
210210 case word do
211- :yo -> :dawg
211+ :one -> :two
212212
213213 :high -> :low
214214 end
@@ -220,8 +220,8 @@ def hello do
220220 defmodule Hello do
221221 def hello do
222222 case word do
223- :yo ->
224- :dawg
223+ :one ->
224+ :two
225225
226226 :high ->
227227 :low
@@ -234,15 +234,15 @@ def hello do
234234 defmodule Hello do
235235 def hello do
236236 case word do
237- :yo ->
237+ :one ->
238238 case word do
239- :yo ->
240- :dawg
239+ :one ->
240+ :two
241241
242242 :high ->
243243 :low
244244 end
245- :dawg
245+ :two
246246
247247 :high ->
248248 :low
@@ -284,9 +284,9 @@ def hello do
284284 defmodule Hello do
285285 def hello do
286286 name =
287- "josh "
287+ "one "
288288 street =
289- "newbury "
289+ "two "
290290 end
291291 end
292292 EOF
@@ -296,18 +296,18 @@ def hello do
296296 defmodule Hello do
297297 def hello do
298298 name #{ bin_op }
299- "josh "
299+ "one "
300300 street #{ bin_op }
301- "newbury "
301+ "two "
302302 end
303303 end
304304 EOF
305305
306306 i <<~EOF
307307 defmodule Hello do
308308 def hello do
309- name #{ bin_op } "josh "
310- street #{ bin_op } "newbury "
309+ name #{ bin_op } "one "
310+ street #{ bin_op } "two "
311311 end
312312 end
313313 EOF
@@ -326,8 +326,8 @@ def hi do
326326 i <<~EOF
327327 defmodule Hello do
328328 def hello do
329- name = "josh "
330- street = "newbury "
329+ name = "one "
330+ street = "two "
331331 end
332332 end
333333 EOF
@@ -346,15 +346,15 @@ def hi do
346346 def hi do
347347 fn hello ->
348348 case hello do
349- :yo ->
349+ :one ->
350350 case word do
351- :yo ->
352- :dawg
351+ :one ->
352+ :two
353353
354354 :high ->
355355 :low
356356 end
357- :dawg
357+ :two
358358
359359 :high ->
360360 :low
@@ -454,13 +454,13 @@ def hi do
454454 defmodule Hi do
455455 defp hi do
456456 try do
457- raise "wtf "
457+ raise "boom "
458458 rescue
459459 e in errs ->
460- IO.puts "yo "
460+ IO.puts "one "
461461
462462 _ ->
463- IO.puts "yo "
463+ IO.puts "one "
464464 end
465465 end
466466 end
@@ -473,10 +473,10 @@ def hi do
473473 raise "wtf"
474474 catch
475475 e ->
476- IO.puts "yo "
476+ IO.puts "one "
477477
478478 _ ->
479- IO.puts "yo "
479+ IO.puts "one "
480480 end
481481 end
482482 end
@@ -490,10 +490,10 @@ def hi do
490490 :ok
491491 after
492492 1000 ->
493- IO.puts "yo "
493+ IO.puts "one "
494494
495495 2000 ->
496- IO.puts "yo "
496+ IO.puts "one "
497497 end
498498 end
499499 end
Original file line number Diff line number Diff line change 44
55describe 'Map syntax' do
66 it 'maps' do
7- str = %q(%{name: "josh "})
7+ str = %q(%{name: "one "})
88 expect ( str ) . to include_elixir_syntax ( 'elixirMapDelimiter' , '%' )
99 expect ( str ) . to include_elixir_syntax ( 'elixirMapDelimiter' , '{' )
1010 expect ( str ) . to include_elixir_syntax ( 'elixirAtom' , 'name:' )
Original file line number Diff line number Diff line change 1616 end
1717
1818 it 'structs' do
19- str = %q(%MyStruct{name: "josh "})
19+ str = %q(%MyStruct{name: "one "})
2020
2121 expect ( str ) . to include_elixir_syntax ( 'elixirStructDelimiter' , '%' )
2222 expect ( str ) . to include_elixir_syntax ( 'elixirStruct' , '%' )
Original file line number Diff line number Diff line change 44
55describe 'Tuple syntax' do
66 it 'tuples' do
7- str = %q({:name, "josh "})
7+ str = %q({:name, "one "})
88
99 expect ( str ) . to include_elixir_syntax ( 'elixirTupleDelimiter' , '{' )
1010 expect ( str ) . to include_elixir_syntax ( 'elixirTuple' , '{' )
You can’t perform that action at this time.
0 commit comments