Template:Roman/testcases

Template page


Empty

{{Roman}}


{{Roman/sandbox}}

Template:Roman/sandbox

{{Roman|}}


{{Roman/sandbox|}}

Template:Roman/sandbox

Live tests with fraction=yes

{{Roman|105.5|fraction=yes}}

CVS

{{Roman|1/7+9|fraction=yes}}

IX•ЄƧ℈»

General cases

Input Live Sandbox User:Stelio/Roman
0 N Template:Roman/sandbox User:Stelio/Roman
1 I Template:Roman/sandbox User:Stelio/Roman
2 II Template:Roman/sandbox User:Stelio/Roman
3 III Template:Roman/sandbox User:Stelio/Roman
4 IV Template:Roman/sandbox User:Stelio/Roman
5 V Template:Roman/sandbox User:Stelio/Roman
6 VI Template:Roman/sandbox User:Stelio/Roman
7 VII Template:Roman/sandbox User:Stelio/Roman
8 VIII Template:Roman/sandbox User:Stelio/Roman
9 IX Template:Roman/sandbox User:Stelio/Roman
10 X Template:Roman/sandbox User:Stelio/Roman
11 XI Template:Roman/sandbox User:Stelio/Roman
12 XII Template:Roman/sandbox User:Stelio/Roman
13 XIII Template:Roman/sandbox User:Stelio/Roman
14 XIV Template:Roman/sandbox User:Stelio/Roman
15 XV Template:Roman/sandbox User:Stelio/Roman
16 XVI Template:Roman/sandbox User:Stelio/Roman
17 XVII Template:Roman/sandbox User:Stelio/Roman
18 XVIII Template:Roman/sandbox User:Stelio/Roman
19 XIX Template:Roman/sandbox User:Stelio/Roman
20 XX Template:Roman/sandbox User:Stelio/Roman
31 XXXI Template:Roman/sandbox User:Stelio/Roman
32 XXXII Template:Roman/sandbox User:Stelio/Roman
33 XXXIII Template:Roman/sandbox User:Stelio/Roman
34 XXXIV Template:Roman/sandbox User:Stelio/Roman
35 XXXV Template:Roman/sandbox User:Stelio/Roman
36 XXXVI Template:Roman/sandbox User:Stelio/Roman
37 XXXVII Template:Roman/sandbox User:Stelio/Roman
38 XXXVIII Template:Roman/sandbox User:Stelio/Roman
39 XXXIX Template:Roman/sandbox User:Stelio/Roman
40 XL Template:Roman/sandbox User:Stelio/Roman
41 XLI Template:Roman/sandbox User:Stelio/Roman
42 XLII Template:Roman/sandbox User:Stelio/Roman
43 XLIII Template:Roman/sandbox User:Stelio/Roman
44 XLIV Template:Roman/sandbox User:Stelio/Roman
45 XLV Template:Roman/sandbox User:Stelio/Roman
46 XLVI Template:Roman/sandbox User:Stelio/Roman
47 XLVII Template:Roman/sandbox User:Stelio/Roman
48 XLVIII Template:Roman/sandbox User:Stelio/Roman
49 XLIX Template:Roman/sandbox User:Stelio/Roman
50 L Template:Roman/sandbox User:Stelio/Roman
90 XC Template:Roman/sandbox User:Stelio/Roman
91 XCI Template:Roman/sandbox User:Stelio/Roman
92 XCII Template:Roman/sandbox User:Stelio/Roman
93 XCIII Template:Roman/sandbox User:Stelio/Roman
94 XCIV Template:Roman/sandbox User:Stelio/Roman
95 XCV Template:Roman/sandbox User:Stelio/Roman
96 XCVI Template:Roman/sandbox User:Stelio/Roman
97 XCVII Template:Roman/sandbox User:Stelio/Roman
98 XCVIII Template:Roman/sandbox User:Stelio/Roman
99 XCIX Template:Roman/sandbox User:Stelio/Roman
100 C Template:Roman/sandbox User:Stelio/Roman
101 CI Template:Roman/sandbox User:Stelio/Roman
102 CII Template:Roman/sandbox User:Stelio/Roman
103 CIII Template:Roman/sandbox User:Stelio/Roman
104 CIV Template:Roman/sandbox User:Stelio/Roman
105 CV Template:Roman/sandbox User:Stelio/Roman
106 CVI Template:Roman/sandbox User:Stelio/Roman
107 CVII Template:Roman/sandbox User:Stelio/Roman
108 CVIII Template:Roman/sandbox User:Stelio/Roman
109 CIX Template:Roman/sandbox User:Stelio/Roman
1000 M Template:Roman/sandbox User:Stelio/Roman
1234 MCCXXXIV Template:Roman/sandbox User:Stelio/Roman
2999 MMCMXCIX Template:Roman/sandbox User:Stelio/Roman
3000 MMM Template:Roman/sandbox User:Stelio/Roman
4999 IVCMXCIX Template:Roman/sandbox User:Stelio/Roman
5000 V Template:Roman/sandbox User:Stelio/Roman
5001 VI Template:Roman/sandbox User:Stelio/Roman
49999 XLIXCMXCIX Template:Roman/sandbox User:Stelio/Roman
50000 L Template:Roman/sandbox User:Stelio/Roman
50001 LI Template:Roman/sandbox User:Stelio/Roman
69105 LXIXCV Template:Roman/sandbox User:Stelio/Roman
69105 LXIXCV Template:Roman/sandbox User:Stelio/Roman
999999 CMXCIXCMXCIX Template:Roman/sandbox User:Stelio/Roman
1000000 M Template:Roman/sandbox User:Stelio/Roman
4999999 MMMMCMXCIXCMXCIX Template:Roman/sandbox User:Stelio/Roman

Numbers exceeding 4999999

Input Live Sandbox User:Stelio/Roman
5000000 N/A Template:Roman/sandbox User:Stelio/Roman
5000010 N/A Template:Roman/sandbox User:Stelio/Roman
3000000000 N/A Template:Roman/sandbox User:Stelio/Roman

Custom messages when too big

Input Live Sandbox User:Stelio/Roman
5000010 with "too big" too big Template:Roman/sandbox User:Stelio/Roman
5000010 with "??" ?? Template:Roman/sandbox User:Stelio/Roman

Sandbox params validation

Decimal cases between 0 and 1

Input Live Live with fraction=yes Sandbox Sandbox with fraction=yes User:Stelio/Roman
0.0001 » Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.0005 » Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.00057 » Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.000578703 » Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.000578704 » Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.00347222 Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.00347223 Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.007 Ƨ Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.0139 Ƨ Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.02084 Ɔ Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.0278 ƧƧ Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.04167 Є Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.08334 Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.142858 •ЄƧ℈» Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.1667 : Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.2 :ƧƧ℈»»»» Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.25 : Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.3333 :: Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
.3333 :: Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.3334 :: Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.34 ::Ƨ Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.4 ::ЄƆ℈» Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.41666 :: Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.41667 :: Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.42 :: Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.5 S Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.55 Ƨ»» Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.6 S•Ƨ»»»»» Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.7 S:ƧƧ℈»»»» Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.75 S: Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.95 S::ƧƧ℈»»»» Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.9999 S::ЄƧƧƧ℈»»»»» Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
0.999999 S::ЄƧƧƧ℈»»»»» Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman

Fractional cases between 0 and 1

Input Live Live with fraction=yes Sandbox Sandbox with fraction=yes User:Stelio/Roman
1/1728 » Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
1/288 Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
1/144 Ƨ Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
1/72 Ƨ Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
1/48 Ɔ Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
1/36 ƧƧ Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
1/24 Є Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
1/12 Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
1/7 •ЄƧ℈» Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
1/6 : Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
1/5 :ƧƧ℈»»»» Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
1/4 : Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
1/3 :: Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
5/12 :: Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
1/2 S Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
2/3 S: Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
14/17 S:•ЄƧƧ℈» Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
5/6 S:: Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
71/72 S::ЄƧƧ Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
999/1000 S::ЄƧƧƧ℈»»»» Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
1727/1728 S::ЄƧƧƧ℈»»»»» Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
9999/10000 S::ЄƧƧƧ℈»»»»» Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman

Negative, decimal/fractional, arithmetic, and misc corner cases

Input Live Live with fraction=yes Sandbox Sandbox with fraction=yes User:Stelio/Roman with "custom"
-1 Lua error: Invalid number -1. Lua error: Invalid number -1. Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
-0 N N Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
-1234 Lua error: Invalid number -1234. Lua error: Invalid number -1234. Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
177/3.5 L LSЄƧƧ»»» Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
50.572 L LSЄƧƧ»»»» Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
1+1 II II Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
10-1 IX IX Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
4*8 XXXII XXXII Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
80/2 XL XL Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
2^8 CCLVI CCLVI Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
105.5 CV CVS Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
2999.765432 MMCMXCIX MMCMXCIXS:•Ƨ»»» Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
3000.22638 MMM MMM:ЄƧ℈» Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman
69105.8 LXIXCV LXIXCVS:•ЄƧ»» Template:Roman/sandbox Template:Roman/sandbox User:Stelio/Roman

Stelio's negative handling

Large arithmetic expressions