Module talk:ConvertNumeric/sandbox/testcases
Appearance
Lua error in Module:ConvertNumeric/sandbox at line 286: bad argument #1 to 'lower' (string expected, got table).
All 75 tests passed.
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:ConvertNumeric/sandbox|decToHex|10 20 40 1024 78912345|minlength=4}} | 000A 0014 0028 0400 4B41B59 | 000A 0014 0028 0400 4B41B59 |
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |0}} | zero | zero | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |1}} | one | one | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english | 1 }} | one | one | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |3 + 5}} | eight | eight | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |1 | case=u}} | One | One | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |1 | case=U}} | One | One | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |-1}} | negative one | negative one | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |-1 | negative=minus}} | minus one | minus one | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |70}} | seventy | seventy | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |42}} | forty-two | forty-two | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |123}} | one hundred and twenty-three | one hundred and twenty-three | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |123 | sp=us}} | one hundred twenty-three | one hundred twenty-three | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |123 | adj=on}} | one-hundred-and-twenty-three | one-hundred-and-twenty-three | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |1050}} | one thousand and fifty | one thousand and fifty | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |1050 | sp=us}} | one thousand fifty | one thousand fifty | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |0.25}} | zero point two five | zero point two five | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |.25}} | zero point two five | zero point two five | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |0 | ord=on}} | zeroth | zeroth | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |33 | ord=on}} | thirty-third | thirty-third | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |40 | ord=on}} | fortieth | fortieth | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |5000000000 | ord=on}} | five billionth | five billionth | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |0 | pl=on}} | zeros | zeros | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |76 | pl=on}} | seventy-sixes | seventy-sixes | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |1000000000000000000000000000001}} | one nonillion and one | one nonillion and one | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |1.23E3}} | one thousand two hundred and thirty | one thousand two hundred and thirty | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |123E-4}} | zero point zero one two three | zero point zero one two three | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |1001001001001000 | lk=on}} | one quadrillion one trillion one billion one million one thousand | one quadrillion one trillion one billion one million one thousand | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |1001001001001000 | lk=billion,quadrillion}} | one quadrillion one trillion one billion one million one thousand | one quadrillion one trillion one billion one million one thousand | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |5E30}} | five nonillion | five nonillion | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |-123456789.25}} | negative one hundred twenty-three million four hundred fifty-six thousand seven hundred and eighty-nine point two five | negative one hundred twenty-three million four hundred fifty-six thousand seven hundred and eighty-nine point two five | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |0 | zero=foo}} | foo | foo | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |0 | ord=on | zero=none}} | none | none | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |1 | numerator=2 | denominator=3}} | one and two-thirds | one and two-thirds | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english || numerator=2 | denominator=3}} | two-thirds | two-thirds | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |1 | denominator=2}} | one and a half | one and a half | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |1 | numerator=3 | denominator=2}} | one and three-halves | one and three-halves | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |1 | numerator=1 | denominator=4}} | one and a quarter | one and a quarter | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |1 | numerator=1 | denominator=4 | sp=us}} | one and a fourth | one and a fourth | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |1 | numerator=1 | denominator=4 | one=one}} | one and one-quarter | one and one-quarter | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |1 | numerator=1 | denominator=4 | sp=us | one=one}} | one and one-fourth | one and one-fourth | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |9 | numerator=3 | denominator=4}} | nine and three-quarters | nine and three-quarters | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |9 | numerator=3 | denominator=4 | sp=us}} | nine and three-fourths | nine and three-fourths | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |23 | numerator=12 | denominator=16}} | twenty-three and twelve-sixteenths | twenty-three and twelve-sixteenths |
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |}} | Invalid decimal numeral | Invalid decimal numeral | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |a}} | Invalid decimal numeral | Invalid decimal numeral | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |.}} | Invalid decimal numeral | Invalid decimal numeral | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |e}} | Invalid decimal numeral | Invalid decimal numeral | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |E}} | Invalid decimal numeral | Invalid decimal numeral | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |E1}} | Invalid decimal numeral | Invalid decimal numeral | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |.E1}} | Invalid decimal numeral | Invalid decimal numeral | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |+}} | Invalid decimal numeral | Invalid decimal numeral | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |-}} | Invalid decimal numeral | Invalid decimal numeral | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |123a}} | Invalid decimal numeral | Invalid decimal numeral | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |a123}} | Invalid decimal numeral | Invalid decimal numeral | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |0.1a}} | Invalid decimal numeral | Invalid decimal numeral | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |-a123}} | Invalid decimal numeral | Invalid decimal numeral |
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |1 | round=on}} | one | one | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |37 | round=on}} | thirty-seven | thirty-seven | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |190 | round=on}} | two hundred | two hundred | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |110 | round=up}} | two hundred | two hundred | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |190 | round=down}} | one hundred | one hundred | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |87654321 | round=on}} | ninety million | ninety million | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |12345678 | round=on}} | twelve million | twelve million | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |-190 | round=on}} | negative two hundred | negative two hundred | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |-190 | round=up}} | negative one hundred | negative one hundred | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |-110 | round=down}} | negative two hundred | negative two hundred | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |0.25 | round=on}} | zero | zero | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |0.5 | round=on}} | one | one | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |-0.25 | round=on}} | zero | zero | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |-0.5 | round=on}} | negative one | negative one | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |0.01 | round=up}} | one | one | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |0.99 | round=down}} | zero | zero | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |-0.01 | round=down}} | negative one | negative one | |
{{#invoke:ConvertNumeric/sandbox | numeral_to_english |-0.99 | round=up}} | zero | zero |
Start a discussion about improving the Module:ConvertNumeric/sandbox/testcases page
Talk pages are where people discuss how to make content on Wikipedia the best that it can be. You can use this page to start a discussion with others about how to improve the "Module:ConvertNumeric/sandbox/testcases" page.