chore: merge "Added DecimalToRoman" (#707)

* Added DecimalToRoman

* add explanation

* added test
This commit is contained in:
Meehoi
2021-10-02 18:23:18 +07:00
committed by GitHub
parent 3a87d4932e
commit 56ccbfcb32
2 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import { decimalToRoman } from '../DecimalToRoman'
describe('decimalToRoman', () => {
it('expects to return correct roman numeral of given number', () => {
expect(decimalToRoman(34)).toBe('XXXIV')
})
it('expects to return correct roman numeral of given number', () => {
expect(decimalToRoman(28)).toBe('XXVIII')
})
it('expects to return correct roman numeral of given number', () => {
expect(decimalToRoman(2021)).toBe('MMXXI')
})
})