Sha256: 94bb1d81b3ae3a115b7d4c06cdfc6f01ce2d538acfe4a829df1429844e34ebd2

Contents?: true

Size: 1.12 KB

Versions: 116

Compression:

Stored size: 1.12 KB

Contents

-module(roman_numerals_tests).

-include_lib("erl_exercism/include/exercism.hrl").
-include_lib("eunit/include/eunit.hrl").

expect_roman(Number, Expected) ->
  ?assertEqual(Expected, roman_numerals:numerals(Number)).

convert_1_test() -> expect_roman(1, "I").

convert_2_test() -> expect_roman(2, "II").

convert_3_test() -> expect_roman(3, "III").

convert_4_test() -> expect_roman(4, "IV").

convert_5_test() -> expect_roman(5, "V").

convert_6_test() -> expect_roman(6, "VI").

convert_9_test() -> expect_roman(9, "IX").

convert_27_test() -> expect_roman(27, "XXVII").

convert_48_test() -> expect_roman(48, "XLVIII").

convert_59_test() -> expect_roman(59, "LIX").

convert_93_test() -> expect_roman(93, "XCIII").

convert_141_test() -> expect_roman(141, "CXLI").

convert_163_test() -> expect_roman(163, "CLXIII").

convert_402_test() -> expect_roman(402, "CDII").

convert_575_test() -> expect_roman(575, "DLXXV").

convert_911_test() -> expect_roman(911, "CMXI").

convert_1024_test() -> expect_roman(1024, "MXXIV").

convert_3000_test() -> expect_roman(3000, "MMM").

version_test() ->
  ?assertMatch(1, roman_numerals:test_version()).

Version data entries

116 entries across 116 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.1.179 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.1.178 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.1.177 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.1.176 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.1.175 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.1.174 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.1.173 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.1.172 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.1.171 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.1.170 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.1.169 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.1.167 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.1.166 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.1.165 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.1.164 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.1.163 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.1.162 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.1.161 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.1.160 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl