Sha256: a187db43214ce3ca2b6f854d8e63230025d840f00ec735f9a75f5073a1fdd5de

Contents?: true

Size: 1.06 KB

Versions: 113

Compression:

Stored size: 1.06 KB

Contents

-module(roman_numerals_tests).

-define(TESTED_MODULE, (sut(roman_numerals))).
-define(TEST_VERSION, 1).
-include("exercism.hrl").


expect_roman(Number, Expected) ->
  ?assertEqual(Expected, ?TESTED_MODULE: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 data entries

113 entries across 113 versions & 1 rubygems

Version Path
trackler-2.2.1.2 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.1.1 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.1.0 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.0.6 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.0.5 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.0.4 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.0.3 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.0.2 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.0.1 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.2.0.0 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.55 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.54 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.53 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.52 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.51 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.50 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.49 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.48 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.47 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.46 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl