Skip to content

Commit

Permalink
Update to crrect match spectation.
Browse files Browse the repository at this point in the history
On the problem specification for this exercise, we should follow what is
defined. Matching the input error first in case both are invalid.

For All your base exercise, we need it's valid to return input or output error when both are provided.
This commit allows both to be returned from the tested function
  • Loading branch information
pedrosnk committed Sep 19, 2023
1 parent 9169c53 commit f4a726a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,6 @@ defmodule AllYourBaseTest do

@tag :pending
test "convert both bases are negative" do
assert AllYourBase.convert([1], -2, -7) == {:error, "output base must be >= 2"}
assert AllYourBase.convert([1], -2, -7) == {:error, "input base must be >= 2"}
end
end

0 comments on commit f4a726a

Please sign in to comment.