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.1.0.45 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.44 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.43 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.42 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.41 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.40 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.39 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.38 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.37 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.36 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.34 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.33 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.32 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.31 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.30 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.29 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.28 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.27 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.26 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
trackler-2.1.0.25 tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl