Sha256: 1bdcff4f9c61afa20e37512cb6b5fac3daa1220891c747cadd69fc54e27d4cf2

Contents?: true

Size: 1.55 KB

Versions: 240

Compression:

Stored size: 1.55 KB

Contents

module RomanNumeralTest

open NUnit.Framework
open RomanNumeral
    
[<TestCase(0, ExpectedResult = "")>]
[<TestCase(1, ExpectedResult = "I", Ignore = "Remove to run test case")>]
[<TestCase(2, ExpectedResult = "II", Ignore = "Remove to run test case")>]
[<TestCase(3, ExpectedResult = "III", Ignore = "Remove to run test case")>]
[<TestCase(4, ExpectedResult = "IV", Ignore = "Remove to run test case")>]
[<TestCase(5, ExpectedResult = "V", Ignore = "Remove to run test case")>]
[<TestCase(6, ExpectedResult = "VI", Ignore = "Remove to run test case")>]
[<TestCase(9, ExpectedResult = "IX", Ignore = "Remove to run test case")>]
[<TestCase(27, ExpectedResult = "XXVII", Ignore = "Remove to run test case")>]
[<TestCase(48, ExpectedResult = "XLVIII", Ignore = "Remove to run test case")>]
[<TestCase(59, ExpectedResult = "LIX", Ignore = "Remove to run test case")>]
[<TestCase(93, ExpectedResult = "XCIII", Ignore = "Remove to run test case")>]
[<TestCase(141, ExpectedResult = "CXLI", Ignore = "Remove to run test case")>]
[<TestCase(163, ExpectedResult = "CLXIII", Ignore = "Remove to run test case")>]
[<TestCase(402, ExpectedResult = "CDII", Ignore = "Remove to run test case")>]
[<TestCase(575, ExpectedResult = "DLXXV", Ignore = "Remove to run test case")>]
[<TestCase(911, ExpectedResult = "CMXI", Ignore = "Remove to run test case")>]
[<TestCase(1024, ExpectedResult = "MXXIV", Ignore = "Remove to run test case")>]
[<TestCase(3000, ExpectedResult = "MMM", Ignore = "Remove to run test case")>]
let ``Convert roman to arabic numerals`` (arabicNumeral) =
    toRoman arabicNumeral

Version data entries

240 entries across 240 versions & 1 rubygems

Version Path
trackler-2.2.1.22 tracks/fsharp/exercises/roman-numerals/RomanNumeralTest.fs
trackler-2.2.1.21 tracks/fsharp/exercises/roman-numerals/RomanNumeralTest.fs
trackler-2.2.1.20 tracks/fsharp/exercises/roman-numerals/RomanNumeralTest.fs
trackler-2.2.1.19 tracks/fsharp/exercises/roman-numerals/RomanNumeralTest.fs
trackler-2.2.1.18 tracks/fsharp/exercises/roman-numerals/RomanNumeralTest.fs
trackler-2.2.1.17 tracks/fsharp/exercises/roman-numerals/RomanNumeralTest.fs
trackler-2.2.1.16 tracks/fsharp/exercises/roman-numerals/RomanNumeralTest.fs
trackler-2.2.1.15 tracks/fsharp/exercises/roman-numerals/RomanNumeralTest.fs
trackler-2.2.1.14 tracks/fsharp/exercises/roman-numerals/RomanNumeralTest.fs
trackler-2.2.1.13 tracks/fsharp/exercises/roman-numerals/RomanNumeralTest.fs
trackler-2.2.1.12 tracks/fsharp/exercises/roman-numerals/RomanNumeralTest.fs
trackler-2.2.1.11 tracks/fsharp/exercises/roman-numerals/RomanNumeralTest.fs
trackler-2.2.1.10 tracks/fsharp/exercises/roman-numerals/RomanNumeralTest.fs
trackler-2.2.1.9 tracks/fsharp/exercises/roman-numerals/RomanNumeralTest.fs
trackler-2.2.1.8 tracks/fsharp/exercises/roman-numerals/RomanNumeralTest.fs
trackler-2.2.1.7 tracks/fsharp/exercises/roman-numerals/RomanNumeralTest.fs
trackler-2.2.1.6 tracks/fsharp/exercises/roman-numerals/RomanNumeralTest.fs
trackler-2.2.1.5 tracks/fsharp/exercises/roman-numerals/RomanNumeralTest.fs
trackler-2.2.1.4 tracks/fsharp/exercises/roman-numerals/RomanNumeralTest.fs
trackler-2.2.1.3 tracks/fsharp/exercises/roman-numerals/RomanNumeralTest.fs