Permalink
Browse files

feat(V): roman numerals 5

  • Loading branch information...
antonydenyer committed Nov 16, 2017
1 parent 9dcb82d commit b4275554cbd2a0b4710a061ed0e30967c2d80b7f
Showing with 7 additions and 0 deletions.
  1. +3 −0 lib/roman.ex
  2. +4 −0 test/roman_test.exs
View
@@ -1,4 +1,7 @@
defmodule Roman do
def to_roman(number) when number == 5 do
"V"
end
def to_roman(number) when number == 4 do
"IV"
View
@@ -15,4 +15,8 @@ defmodule RomanTest do
assert Roman.to_roman(4) == "IV"
end
test "five is V" do
assert Roman.to_roman(5) == "V"
end
end

0 comments on commit b427555

Please sign in to comment.