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
197
197
defmodule Hello do
198
198
def hello do
199
199
case word do
200
- :yo -> :dawg
200
+ :one -> :two
201
201
:high -> :low
202
202
end
203
203
end
@@ -208,7 +208,7 @@ def hello do
208
208
defmodule Hello do
209
209
def hello do
210
210
case word do
211
- :yo -> :dawg
211
+ :one -> :two
212
212
213
213
:high -> :low
214
214
end
@@ -220,8 +220,8 @@ def hello do
220
220
defmodule Hello do
221
221
def hello do
222
222
case word do
223
- :yo ->
224
- :dawg
223
+ :one ->
224
+ :two
225
225
226
226
:high ->
227
227
:low
@@ -234,15 +234,15 @@ def hello do
234
234
defmodule Hello do
235
235
def hello do
236
236
case word do
237
- :yo ->
237
+ :one ->
238
238
case word do
239
- :yo ->
240
- :dawg
239
+ :one ->
240
+ :two
241
241
242
242
:high ->
243
243
:low
244
244
end
245
- :dawg
245
+ :two
246
246
247
247
:high ->
248
248
:low
@@ -284,9 +284,9 @@ def hello do
284
284
defmodule Hello do
285
285
def hello do
286
286
name =
287
- "josh "
287
+ "one "
288
288
street =
289
- "newbury "
289
+ "two "
290
290
end
291
291
end
292
292
EOF
@@ -296,18 +296,18 @@ def hello do
296
296
defmodule Hello do
297
297
def hello do
298
298
name #{ bin_op }
299
- "josh "
299
+ "one "
300
300
street #{ bin_op }
301
- "newbury "
301
+ "two "
302
302
end
303
303
end
304
304
EOF
305
305
306
306
i <<~EOF
307
307
defmodule Hello do
308
308
def hello do
309
- name #{ bin_op } "josh "
310
- street #{ bin_op } "newbury "
309
+ name #{ bin_op } "one "
310
+ street #{ bin_op } "two "
311
311
end
312
312
end
313
313
EOF
@@ -326,8 +326,8 @@ def hi do
326
326
i <<~EOF
327
327
defmodule Hello do
328
328
def hello do
329
- name = "josh "
330
- street = "newbury "
329
+ name = "one "
330
+ street = "two "
331
331
end
332
332
end
333
333
EOF
@@ -346,15 +346,15 @@ def hi do
346
346
def hi do
347
347
fn hello ->
348
348
case hello do
349
- :yo ->
349
+ :one ->
350
350
case word do
351
- :yo ->
352
- :dawg
351
+ :one ->
352
+ :two
353
353
354
354
:high ->
355
355
:low
356
356
end
357
- :dawg
357
+ :two
358
358
359
359
:high ->
360
360
:low
@@ -454,13 +454,13 @@ def hi do
454
454
defmodule Hi do
455
455
defp hi do
456
456
try do
457
- raise "wtf "
457
+ raise "boom "
458
458
rescue
459
459
e in errs ->
460
- IO.puts "yo "
460
+ IO.puts "one "
461
461
462
462
_ ->
463
- IO.puts "yo "
463
+ IO.puts "one "
464
464
end
465
465
end
466
466
end
@@ -473,10 +473,10 @@ def hi do
473
473
raise "wtf"
474
474
catch
475
475
e ->
476
- IO.puts "yo "
476
+ IO.puts "one "
477
477
478
478
_ ->
479
- IO.puts "yo "
479
+ IO.puts "one "
480
480
end
481
481
end
482
482
end
@@ -490,10 +490,10 @@ def hi do
490
490
:ok
491
491
after
492
492
1000 ->
493
- IO.puts "yo "
493
+ IO.puts "one "
494
494
495
495
2000 ->
496
- IO.puts "yo "
496
+ IO.puts "one "
497
497
end
498
498
end
499
499
end
Original file line number Diff line number Diff line change 4
4
5
5
describe 'Map syntax' do
6
6
it 'maps' do
7
- str = %q(%{name: "josh "})
7
+ str = %q(%{name: "one "})
8
8
expect ( str ) . to include_elixir_syntax ( 'elixirMapDelimiter' , '%' )
9
9
expect ( str ) . to include_elixir_syntax ( 'elixirMapDelimiter' , '{' )
10
10
expect ( str ) . to include_elixir_syntax ( 'elixirAtom' , 'name:' )
Original file line number Diff line number Diff line change 16
16
end
17
17
18
18
it 'structs' do
19
- str = %q(%MyStruct{name: "josh "})
19
+ str = %q(%MyStruct{name: "one "})
20
20
21
21
expect ( str ) . to include_elixir_syntax ( 'elixirStructDelimiter' , '%' )
22
22
expect ( str ) . to include_elixir_syntax ( 'elixirStruct' , '%' )
Original file line number Diff line number Diff line change 4
4
5
5
describe 'Tuple syntax' do
6
6
it 'tuples' do
7
- str = %q({:name, "josh "})
7
+ str = %q({:name, "one "})
8
8
9
9
expect ( str ) . to include_elixir_syntax ( 'elixirTupleDelimiter' , '{' )
10
10
expect ( str ) . to include_elixir_syntax ( 'elixirTuple' , '{' )
You can’t perform that action at this time.
0 commit comments