my-solutions/leetcode/0001-two-sum/elixir/test/two_sum_test.exs

17 lines
312 B
Elixir
Raw Permalink Normal View History

defmodule SolutionTest do
use ExUnit.Case
doctest Solution
test "example 1" do
assert Solution.two_sum([2, 7, 11, 15], 9) == [0, 1]
end
test "example 2" do
assert Solution.two_sum([3, 2, 4], 6) == [1, 2]
end
test "example 3" do
assert Solution.two_sum([3, 3], 6) == [0, 1]
end
end