From 35df921fcda61fb1f08ce72e3e062b75bbe83394 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 20 Jun 2012 12:01:32 +0200 Subject: [PATCH] Ox.formatRoman: add tests --- source/Ox/js/Format.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/Ox/js/Format.js b/source/Ox/js/Format.js index 9294e8f7..1b12222c 100644 --- a/source/Ox/js/Format.js +++ b/source/Ox/js/Format.js @@ -633,12 +633,16 @@ Ox.formatPercent = function(number, total, decimals) { /*@ Ox.formatRoman 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' @*/