Skip to content

Commit b2c2a30

Browse files
committed
Move the List concat tests to Enum
1 parent 9ef2996 commit b2c2a30

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/elixir/test/elixir/enum_test.exs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ defmodule EnumTest.List do
5454
assert Enum.at([2, 4, 6], 4, :none) == :none
5555
end
5656

57+
test :concat_1 do
58+
assert Enum.concat([[1, [2], 3], [4], [5, 6]]) == [1, [2], 3, 4, 5, 6]
59+
end
60+
61+
test :concat_2 do
62+
assert Enum.concat([1, [2], 3], [4, 5]) == [1, [2], 3, 4, 5]
63+
end
64+
5765
test :fetch! do
5866
assert Enum.fetch!([2, 4, 6], 0) == 2
5967
assert Enum.fetch!([2, 4, 6], 2) == 6

lib/elixir/test/elixir/list_test.exs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,6 @@ defmodule ListTest do
5353
assert List.foldr([1, 2, 3, 4], 0, fn x, y -> x - y end) == -2
5454
end
5555

56-
test :concat_1 do
57-
assert List.concat([[1, [2], 3], [4], [5, 6]]) == [1, [2], 3, 4, 5, 6]
58-
end
59-
60-
test :concat_2 do
61-
assert List.concat([1, [2], 3], [4, 5]) == [1, [2], 3, 4, 5]
62-
end
63-
6456
test :reverse do
6557
assert Enum.reverse([1, 2, 3]) == [3, 2, 1]
6658
end

0 commit comments

Comments
 (0)