Permalink
Browse files

renamed tests to be more consistent

  • Loading branch information...
1 parent e0bc032 commit 16a5a26b9fd0b6135501d1a134a73801e92bc3c7 @glyphrider committed Jul 30, 2012
Showing with 40 additions and 40 deletions.
  1. +40 −40 roman.erl
View
80 roman.erl
@@ -36,44 +36,44 @@ from_roman("IV" ++ S,N) -> from_roman(S,N+4);
from_roman("I" ++ S,N) -> from_roman(S,N+1);
from_roman("",N) -> N.
-roman_one_test() -> "I" = to(1).
-roman_two_test() -> "II" = to(2).
-roman_three_test() -> "III" = to(3).
-roman_four_test() -> "IV" = to(4).
-roman_five_test() -> "V" = to(5).
-roman_six_test() -> "VI" = to(6).
-roman_nine_test() -> "IX" = to(9).
-roman_ten_test() -> "X" = to(10).
-roman_sixteen_test() -> "XVI" = to(16).
-roman_nineteen_test() -> "XIX" = to(19).
-roman_twenty_eight_test() -> "XXVIII" = to(28).
-roman_forty_test() -> "XL" = to(40).
-roman_fifty_test() -> "L" = to(50).
-roman_ninety_test() -> "XC" = to(90).
-roman_hundred_test() -> "C" = to(100).
-roman_five_hundred_test() -> "D" = to(500).
-roman_four_hundred_test() -> "CD" = to(400).
-roman_thousand_test() -> "M" = to(1000).
-roman_nine_hundred_test() -> "CM" = to(900).
-roman_nineteen_sixty_eight_test() -> "MCMLXVIII" = to(1968).
+to_roman_one_test() -> "I" = to(1).
+to_roman_two_test() -> "II" = to(2).
+to_roman_three_test() -> "III" = to(3).
+to_roman_four_test() -> "IV" = to(4).
+to_roman_five_test() -> "V" = to(5).
+to_roman_six_test() -> "VI" = to(6).
+to_roman_nine_test() -> "IX" = to(9).
+to_roman_ten_test() -> "X" = to(10).
+to_roman_sixteen_test() -> "XVI" = to(16).
+to_roman_nineteen_test() -> "XIX" = to(19).
+to_roman_twenty_eight_test() -> "XXVIII" = to(28).
+to_roman_forty_test() -> "XL" = to(40).
+to_roman_fifty_test() -> "L" = to(50).
+to_roman_ninety_test() -> "XC" = to(90).
+to_roman_hundred_test() -> "C" = to(100).
+to_roman_five_hundred_test() -> "D" = to(500).
+to_roman_four_hundred_test() -> "CD" = to(400).
+to_roman_thousand_test() -> "M" = to(1000).
+to_roman_nine_hundred_test() -> "CM" = to(900).
+to_roman_nineteen_sixty_eight_test() -> "MCMLXVIII" = to(1968).
-roman_from_one_test() -> 1 = from("I").
-roman_from_two_test() -> 2 = from("II").
-roman_from_three_test() -> 3 = from("III").
-roman_from_four_test() -> 4 = from("IV").
-roman_from_five_test() -> 5 = from("V").
-roman_from_six_test() -> 6 = from("VI").
-roman_from_nine_test() -> 9 = from("IX").
-roman_from_ten_test() -> 10 = from("X").
-roman_from_sixteen_test() -> 16 = from("XVI").
-roman_from_nineteen_test() -> 19 = from("XIX").
-roman_from_twenty_eight_test() -> 28 = from("XXVIII").
-roman_from_forty_test() -> 40 = from("XL").
-roman_from_fifty_test() -> 50 = from("L").
-roman_from_ninety_test() -> 90 = from("XC").
-roman_from_hundred_test() -> 100 = from("C").
-roman_from_five_hundred_test() -> 500 = from("D").
-roman_from_four_hundred_test() -> 400 = from("CD").
-roman_from_thousand_test() -> 1000 = from("M").
-roman_from_nine_hundred_test() -> 900 = from("CM").
-roman_from_nineteen_sixty_eight_test() -> 1968 = from("MCMLXVIII").
+from_roman_one_test() -> 1 = from("I").
+from_roman_two_test() -> 2 = from("II").
+from_roman_three_test() -> 3 = from("III").
+from_roman_four_test() -> 4 = from("IV").
+from_roman_five_test() -> 5 = from("V").
+from_roman_six_test() -> 6 = from("VI").
+from_roman_nine_test() -> 9 = from("IX").
+from_roman_ten_test() -> 10 = from("X").
+from_roman_sixteen_test() -> 16 = from("XVI").
+from_roman_nineteen_test() -> 19 = from("XIX").
+from_roman_twenty_eight_test() -> 28 = from("XXVIII").
+from_roman_forty_test() -> 40 = from("XL").
+from_roman_fifty_test() -> 50 = from("L").
+from_roman_ninety_test() -> 90 = from("XC").
+from_roman_hundred_test() -> 100 = from("C").
+from_roman_five_hundred_test() -> 500 = from("D").
+from_roman_four_hundred_test() -> 400 = from("CD").
+from_roman_thousand_test() -> 1000 = from("M").
+from_roman_nine_hundred_test() -> 900 = from("CM").
+from_roman_nineteen_sixty_eight_test() -> 1968 = from("MCMLXVIII").

0 comments on commit 16a5a26

Please sign in to comment.