Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.

Commit 091701f

Browse files
committed
Task two is done
1 parent 8875fcb commit 091701f

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ defmodule Hackerank.MixProject do
1414
end
1515

1616
defp elixirc_paths(:test), do: ["tests", "w1", "w2", "w3", "w4", "w5"]
17-
defp elixirc_paths(_), do: ["lib"]
17+
defp elixirc_paths(_), do: ["lib", "w1", "w2", "w3", "w4", "w5"]
1818
end

test/test_helper.exs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ defmodule Hackerrank.Test.Helper do
3636
expected = exp_fn.(expected)
3737

3838
# and done
39-
# [args, expected]
40-
{tc, args, expected}
39+
[args, expected]
4140
end
4241

4342
end

w1/plus_minus.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ defmodule Hackerrank.W1.PlusMinus do
99
|> List.to_string()
1010
end
1111

12+
@spec challenge([integer()]) :: [String.t()]
1213
def challenge(arr) do
1314

1415
# length is accessed a few times

w1/plus_minus_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ defmodule Hackerank.W1.PlusMinusTest do
88

99
test "run the tests" do
1010
Helper.test_all(@pattern, &parse_args/1, &parse_expected/1 )
11-
|> Enum.each(fn {_label, args, expected} ->
12-
assert PlusMinus.challenge(args) == expected
11+
|> Enum.each(fn [args, expected] ->
12+
assert PlusMinus.challenge(args) == expected
1313
end)
1414
end
1515

0 commit comments

Comments
 (0)