my-solutions/leetcode/0012-integer-to-roman/elixir/test/integer_to_roman_test.exs

25 lines
481 B
Elixir
Raw Permalink Normal View History

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