25 lines
481 B
Elixir
25 lines
481 B
Elixir
|
defmodule IntegerToRomanTest do
|
||
|
use ExUnit.Case
|
||
|
doctest Solution
|
||
|
|
||
|
test "example 1" do
|
||
|
assert Solution.int_to_roman(3749) == "MMMDCCXLIX"
|
||
|
end
|
||
|
|
||
|
test "example 2" do
|
||
|
assert Solution.int_to_roman(58) == "LVIII"
|
||
|
end
|
||
|
|
||
|
test "example 3" do
|
||
|
assert Solution.int_to_roman(1994) == "MCMXCIV"
|
||
|
end
|
||
|
|
||
|
test "smallest number" do
|
||
|
assert Solution.int_to_roman(1) == "I"
|
||
|
end
|
||
|
|
||
|
test "largest number" do
|
||
|
assert Solution.int_to_roman(3999) == "MMMCMXCIX"
|
||
|
end
|
||
|
end
|