Skip to content

[TDD] Kata - Roman Numerals -> Numbers #73

@fengyuanyang

Description

@fengyuanyang

Description
Provide a converter, convert from Roman Numerals to normal numbers
Kata-Roman Numerals

Roman rules
http://www.novaroma.org/via_romana/numbers.html

 I --> 1
 X --> 10
 VII --> 7
 XXXI -> 31

Tests

Given one parameter (string )
When input is "I"
Expect 1 return

When input is "X"
Expect 10 return

When input is "VII"
Expect 7 return

When input is "XXXI"
Expect 31 return

Additional context

Add any other context, links references or screenshots about the feature request here.

Important Checklist

  • I have written unit test first, make it red(fail first).
  • I have then written logic code, make it green(success)
  • I have tried to refactor my code, make it understandable(document my code)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions