Ox.formatRoman: add tests

This commit is contained in:
rolux 2012-06-20 12:01:32 +02:00
parent 14d57f70bb
commit 35df921fcd

View file

@ -633,12 +633,16 @@ Ox.formatPercent = function(number, total, decimals) {
/*@
Ox.formatRoman <f> Formats a number as a roman numeral
> Ox.formatRoman(1888)
'MDCCCLXXXVIII'
> Ox.formatRoman(1999)
'MCMXCIX'
> Ox.formatRoman(2001)
'MMI'
> Ox.formatRoman(2002)
'MMII'
> Ox.formatRoman(0)
''
> Ox.formatRoman(9.9)
'XI'
> Ox.formatRoman(10000)
'MMMMMMMMMM'
@*/