Ox.formatRoman: add test

This commit is contained in:
rolux 2012-06-20 12:03:10 +02:00
parent c68af487c5
commit bbf72ab0c7

View file

@ -637,8 +637,10 @@ Ox.formatRoman <f> Formats a number as a roman numeral
'MDCCCLXXXVIII' 'MDCCCLXXXVIII'
> Ox.formatRoman(1999) > Ox.formatRoman(1999)
'MCMXCIX' 'MCMXCIX'
> Ox.formatRoman(2002) > Ox.formatRoman(2000)
'MMII' 'MM'
> Ox.formatRoman(-1)
''
> Ox.formatRoman(0) > Ox.formatRoman(0)
'' ''
> Ox.formatRoman(9.9) > Ox.formatRoman(9.9)