Skip to content

Commit

Permalink
change test word wording
Browse files Browse the repository at this point in the history
  • Loading branch information
jbodah committed Jan 26, 2022
1 parent 8ace05a commit e9d8b59
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 30 deletions.
54 changes: 27 additions & 27 deletions spec/indent/basic_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def some_func do
defmodule Hello do
def hello do
case word do
:yo -> :dawg
:one -> :two
:high -> :low
end
end
Expand All @@ -208,7 +208,7 @@ def hello do
defmodule Hello do
def hello do
case word do
:yo -> :dawg
:one -> :two
:high -> :low
end
Expand All @@ -220,8 +220,8 @@ def hello do
defmodule Hello do
def hello do
case word do
:yo ->
:dawg
:one ->
:two
:high ->
:low
Expand All @@ -234,15 +234,15 @@ def hello do
defmodule Hello do
def hello do
case word do
:yo ->
:one ->
case word do
:yo ->
:dawg
:one ->
:two
:high ->
:low
end
:dawg
:two
:high ->
:low
Expand Down Expand Up @@ -284,9 +284,9 @@ def hello do
defmodule Hello do
def hello do
name =
"josh"
"one"
street =
"newbury"
"two"
end
end
EOF
Expand All @@ -296,18 +296,18 @@ def hello do
defmodule Hello do
def hello do
name #{bin_op}
"josh"
"one"
street #{bin_op}
"newbury"
"two"
end
end
EOF

i <<~EOF
defmodule Hello do
def hello do
name #{bin_op} "josh"
street #{bin_op} "newbury"
name #{bin_op} "one"
street #{bin_op} "two"
end
end
EOF
Expand All @@ -326,8 +326,8 @@ def hi do
i <<~EOF
defmodule Hello do
def hello do
name = "josh"
street = "newbury"
name = "one"
street = "two"
end
end
EOF
Expand All @@ -346,15 +346,15 @@ def hi do
def hi do
fn hello ->
case hello do
:yo ->
:one ->
case word do
:yo ->
:dawg
:one ->
:two
:high ->
:low
end
:dawg
:two
:high ->
:low
Expand Down Expand Up @@ -454,13 +454,13 @@ def hi do
defmodule Hi do
defp hi do
try do
raise "wtf"
raise "boom"
rescue
e in errs ->
IO.puts "yo"
IO.puts "one"
_ ->
IO.puts "yo"
IO.puts "one"
end
end
end
Expand All @@ -473,10 +473,10 @@ def hi do
raise "wtf"
catch
e ->
IO.puts "yo"
IO.puts "one"
_ ->
IO.puts "yo"
IO.puts "one"
end
end
end
Expand All @@ -490,10 +490,10 @@ def hi do
:ok
after
1000 ->
IO.puts "yo"
IO.puts "one"
2000 ->
IO.puts "yo"
IO.puts "one"
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/syntax/map_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

describe 'Map syntax' do
it 'maps' do
str = %q(%{name: "josh"})
str = %q(%{name: "one"})
expect(str).to include_elixir_syntax('elixirMapDelimiter', '%')
expect(str).to include_elixir_syntax('elixirMapDelimiter', '{')
expect(str).to include_elixir_syntax('elixirAtom', 'name:')
Expand Down
2 changes: 1 addition & 1 deletion spec/syntax/struct_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
end

it 'structs' do
str = %q(%MyStruct{name: "josh"})
str = %q(%MyStruct{name: "one"})

expect(str).to include_elixir_syntax('elixirStructDelimiter', '%')
expect(str).to include_elixir_syntax('elixirStruct', '%')
Expand Down
2 changes: 1 addition & 1 deletion spec/syntax/tuple_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

describe 'Tuple syntax' do
it 'tuples' do
str = %q({:name, "josh"})
str = %q({:name, "one"})

expect(str).to include_elixir_syntax('elixirTupleDelimiter', '{')
expect(str).to include_elixir_syntax('elixirTuple', '{')
Expand Down

0 comments on commit e9d8b59

Please sign in to comment.