Skip to content

Commit ebfa1d7

Browse files
committed
renamed test
1 parent 8622da8 commit ebfa1d7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ defmodule ElixirScript.Translator.Match.Test do
22
use ExUnit.Case
33
import ElixirScript.TestHelper
44

5-
test "translate simple assignment" do
5+
test "translate simple match" do
66
ex_ast = quote do: a = 1
77
js_code = "let [a] = Elixir.Core.Patterns.match(Elixir.Core.Patterns.variable(), 1);"
88

@@ -14,7 +14,7 @@ defmodule ElixirScript.Translator.Match.Test do
1414
assert_translation(ex_ast, js_code)
1515
end
1616

17-
test "translate tuple assignment" do
17+
test "translate tuple match" do
1818
ex_ast = quote do
1919
{a, b} = {1, 2}
2020
end
@@ -49,7 +49,7 @@ defmodule ElixirScript.Translator.Match.Test do
4949
assert_translation(ex_ast, js_code)
5050
end
5151

52-
test "translate bound assignment" do
52+
test "translate bound match" do
5353
ex_ast = quote do: ^a = 1
5454
js_code = """
5555
let [] = Elixir.Core.Patterns.match(Elixir.Core.Patterns.bound(a),1);
@@ -58,7 +58,7 @@ defmodule ElixirScript.Translator.Match.Test do
5858
assert_translation(ex_ast, js_code)
5959
end
6060

61-
test "translate list assignment" do
61+
test "translate list match" do
6262
ex_ast = quote do: [a, b] = [1, 2]
6363
js_code = """
6464
let [a,b] = Elixir.Core.Patterns.match(Object.freeze([Elixir.Core.Patterns.variable(), Elixir.Core.Patterns.variable()]),Object.freeze([1, 2]));
@@ -68,7 +68,7 @@ defmodule ElixirScript.Translator.Match.Test do
6868
assert_translation(ex_ast, js_code)
6969
end
7070

71-
test "translate head/tail assignment" do
71+
test "translate head/tail match" do
7272
ex_ast = quote do: [a | b] = [1, 2, 3, 4]
7373
js_code = """
7474
let [a,b] = Elixir.Core.Patterns.match(Elixir.Core.Patterns.headTail(Elixir.Core.Patterns.variable(),Elixir.Core.Patterns.variable()),Object.freeze([1, 2, 3, 4]));

0 commit comments

Comments
 (0)