Jump to content

Module:ConvertNumeric/testcases/documentation

Wiktionary වෙතින්

All tests passed. (refresh)

TextExpectedActualDiffers at
test_decToHex:
Passed{{#invoke:ConvertNumeric|decToHex|10 20 40 1024 78912345|minlength=4}}000A 0014 0028 0400 4B41B59000A 0014 0028 0400 4B41B59
TextExpectedActualDiffers at
test_numeral_to_english:
Passed{{#invoke:ConvertNumeric | numeral_to_english |0}}zerozero
Passed{{#invoke:ConvertNumeric | numeral_to_english |1}}oneone
Passed{{#invoke:ConvertNumeric | numeral_to_english | 1 }}oneone
Passed{{#invoke:ConvertNumeric | numeral_to_english |1 | case=u}}OneOne
Passed{{#invoke:ConvertNumeric | numeral_to_english |1 | case=U}}OneOne
Passed{{#invoke:ConvertNumeric | numeral_to_english |-1}}negative onenegative one
Passed{{#invoke:ConvertNumeric | numeral_to_english |-1 | negative=minus}}minus oneminus one
Passed{{#invoke:ConvertNumeric | numeral_to_english |70}}seventyseventy
Passed{{#invoke:ConvertNumeric | numeral_to_english |42}}forty-twoforty-two
Passed{{#invoke:ConvertNumeric | numeral_to_english |123}}one hundred and twenty-threeone hundred and twenty-three
Passed{{#invoke:ConvertNumeric | numeral_to_english |123 | sp=us}}one hundred twenty-threeone hundred twenty-three
Passed{{#invoke:ConvertNumeric | numeral_to_english |123 | adj=on}}one-hundred-and-twenty-threeone-hundred-and-twenty-three
Passed{{#invoke:ConvertNumeric | numeral_to_english |1050}}one thousand and fiftyone thousand and fifty
Passed{{#invoke:ConvertNumeric | numeral_to_english |1050 | sp=us}}one thousand fiftyone thousand fifty
Passed{{#invoke:ConvertNumeric | numeral_to_english |0.25}}zero point two fivezero point two five
Passed{{#invoke:ConvertNumeric | numeral_to_english |.25}}zero point two fivezero point two five
Passed{{#invoke:ConvertNumeric | numeral_to_english |0 | ord=on}}zerothzeroth
Passed{{#invoke:ConvertNumeric | numeral_to_english |33 | ord=on}}thirty-thirdthirty-third
Passed{{#invoke:ConvertNumeric | numeral_to_english |40 | ord=on}}fortiethfortieth
Passed{{#invoke:ConvertNumeric | numeral_to_english |5000000000 | ord=on}}five billionthfive billionth
Passed{{#invoke:ConvertNumeric | numeral_to_english |0 | pl=on}}zeroszeros
Passed{{#invoke:ConvertNumeric | numeral_to_english |76 | pl=on}}seventy-sixesseventy-sixes
Passed{{#invoke:ConvertNumeric | numeral_to_english |1000000000000000000000000000001}}one nonillion and oneone nonillion and one
Passed{{#invoke:ConvertNumeric | numeral_to_english |1.23E3}}one thousand two hundred and thirtyone thousand two hundred and thirty
Passed{{#invoke:ConvertNumeric | numeral_to_english |123E-4}}zero point zero one two threezero point zero one two three
Passed{{#invoke:ConvertNumeric | numeral_to_english |1001001001001000 | lk=on}}one quadrillion one trillion one billion one million one thousandone quadrillion one trillion one billion one million one thousand
Passed{{#invoke:ConvertNumeric | numeral_to_english |1001001001001000 | lk=billion,quadrillion}}one quadrillion one trillion one billion one million one thousandone quadrillion one trillion one billion one million one thousand
Passed{{#invoke:ConvertNumeric | numeral_to_english |5E30}}five nonillionfive nonillion
Passed{{#invoke:ConvertNumeric | numeral_to_english |-123456789.25}}negative one hundred twenty-three million four hundred fifty-six thousand seven hundred and eighty-nine point two fivenegative one hundred twenty-three million four hundred fifty-six thousand seven hundred and eighty-nine point two five
Passed{{#invoke:ConvertNumeric | numeral_to_english |0 | zero=foo}}foofoo
Passed{{#invoke:ConvertNumeric | numeral_to_english |0 | ord=on | zero=none}}nonenone
Passed{{#invoke:ConvertNumeric | numeral_to_english |1 | numerator=2 | denominator=3}}one and two-thirdsone and two-thirds
Passed{{#invoke:ConvertNumeric | numeral_to_english || numerator=2 | denominator=3}}two-thirdstwo-thirds
Passed{{#invoke:ConvertNumeric | numeral_to_english |1 | denominator=2}}one and a halfone and a half
Passed{{#invoke:ConvertNumeric | numeral_to_english |1 | numerator=3 | denominator=2}}one and three-halvesone and three-halves
Passed{{#invoke:ConvertNumeric | numeral_to_english |1 | numerator=1 | denominator=4}}one and a quarterone and a quarter
Passed{{#invoke:ConvertNumeric | numeral_to_english |1 | numerator=1 | denominator=4 | sp=us}}one and a fourthone and a fourth
Passed{{#invoke:ConvertNumeric | numeral_to_english |1 | numerator=1 | denominator=4 | one=one}}one and one-quarterone and one-quarter
Passed{{#invoke:ConvertNumeric | numeral_to_english |1 | numerator=1 | denominator=4 | sp=us | one=one}}one and one-fourthone and one-fourth
Passed{{#invoke:ConvertNumeric | numeral_to_english |9 | numerator=3 | denominator=4}}nine and three-quartersnine and three-quarters
Passed{{#invoke:ConvertNumeric | numeral_to_english |9 | numerator=3 | denominator=4 | sp=us}}nine and three-fourthsnine and three-fourths
Passed{{#invoke:ConvertNumeric | numeral_to_english |23 | numerator=12 | denominator=16}}twenty-three and twelve-sixteenthstwenty-three and twelve-sixteenths
TextExpectedActualDiffers at
test_numeral_to_english_error:
Passed{{#invoke:ConvertNumeric | numeral_to_english |}}Invalid decimal numeralInvalid decimal numeral
Passed{{#invoke:ConvertNumeric | numeral_to_english |a}}Invalid decimal numeralInvalid decimal numeral
Passed{{#invoke:ConvertNumeric | numeral_to_english |.}}Invalid decimal numeralInvalid decimal numeral
Passed{{#invoke:ConvertNumeric | numeral_to_english |e}}Invalid decimal numeralInvalid decimal numeral
Passed{{#invoke:ConvertNumeric | numeral_to_english |E}}Invalid decimal numeralInvalid decimal numeral
Passed{{#invoke:ConvertNumeric | numeral_to_english |E1}}Invalid decimal numeralInvalid decimal numeral
Passed{{#invoke:ConvertNumeric | numeral_to_english |.E1}}Invalid decimal numeralInvalid decimal numeral
Passed{{#invoke:ConvertNumeric | numeral_to_english |+}}Invalid decimal numeralInvalid decimal numeral
Passed{{#invoke:ConvertNumeric | numeral_to_english |-}}Invalid decimal numeralInvalid decimal numeral
Passed{{#invoke:ConvertNumeric | numeral_to_english |123a}}Invalid decimal numeralInvalid decimal numeral
Passed{{#invoke:ConvertNumeric | numeral_to_english |a123}}Invalid decimal numeralInvalid decimal numeral
Passed{{#invoke:ConvertNumeric | numeral_to_english |0.1a}}Invalid decimal numeralInvalid decimal numeral
Passed{{#invoke:ConvertNumeric | numeral_to_english |-a123}}Invalid decimal numeralInvalid decimal numeral
TextExpectedActualDiffers at
test_numeral_to_english_round:
Passed{{#invoke:ConvertNumeric | numeral_to_english |1 | round=on}}oneone
Passed{{#invoke:ConvertNumeric | numeral_to_english |37 | round=on}}thirty-seventhirty-seven
Passed{{#invoke:ConvertNumeric | numeral_to_english |190 | round=on}}two hundredtwo hundred
Passed{{#invoke:ConvertNumeric | numeral_to_english |110 | round=up}}two hundredtwo hundred
Passed{{#invoke:ConvertNumeric | numeral_to_english |190 | round=down}}one hundredone hundred
Passed{{#invoke:ConvertNumeric | numeral_to_english |87654321 | round=on}}ninety millionninety million
Passed{{#invoke:ConvertNumeric | numeral_to_english |12345678 | round=on}}twelve milliontwelve million
Passed{{#invoke:ConvertNumeric | numeral_to_english |-190 | round=on}}negative two hundrednegative two hundred
Passed{{#invoke:ConvertNumeric | numeral_to_english |-190 | round=up}}negative one hundrednegative one hundred
Passed{{#invoke:ConvertNumeric | numeral_to_english |-110 | round=down}}negative two hundrednegative two hundred
Passed{{#invoke:ConvertNumeric | numeral_to_english |0.25 | round=on}}zerozero
Passed{{#invoke:ConvertNumeric | numeral_to_english |0.5 | round=on}}oneone
Passed{{#invoke:ConvertNumeric | numeral_to_english |-0.25 | round=on}}zerozero
Passed{{#invoke:ConvertNumeric | numeral_to_english |-0.5 | round=on}}negative onenegative one
Passed{{#invoke:ConvertNumeric | numeral_to_english |0.01 | round=up}}oneone
Passed{{#invoke:ConvertNumeric | numeral_to_english |0.99 | round=down}}zerozero
Passed{{#invoke:ConvertNumeric | numeral_to_english |-0.01 | round=down}}negative onenegative one
Passed{{#invoke:ConvertNumeric | numeral_to_english |-0.99 | round=up}}zerozero


"https://si.wiktionary.org/w/index.php?title=Module:ConvertNumeric/testcases/documentation&oldid=164641" වෙතින් සම්ප්‍රවේශනය කෙරිණි