Difference between revisions of "Template:Cardinal to word/0 to 999/testcases"
Jump to navigation
Jump to search
imported>SimonTrew (Cribbed from Template:Cardinal to word/0 to 99 and altered approrpriately) |
|||
| Line 53: | Line 53: | ||
|pi||{{Cardinal to word/0 to 999|pi}} | |pi||{{Cardinal to word/0 to 999|pi}} | ||
|- | |- | ||
| − | |NaN||{{Cardinal to word/0 to 999|NaN}} | + | |NaN||{{#iferror:{{Cardinal to word/0 to 999|NaN}}|{{error|Expression error}}}} |
|- | |- | ||
| − | |(empty)||{{Cardinal to word/0 to 999|}} | + | |(empty)||{{#iferror:{{Cardinal to word/0 to 999|}}|{{error|Expression error}}}} |
|- | |- | ||
| − | |(missing)||{{Cardinal to word/0 to 999}} | + | |(missing)||{{#iferror:{{Cardinal to word/0 to 999}}|{{error|Expression error}}}} |
|} | |} | ||
Revision as of 20:52, 17 August 2011
This shows the output of the template given valid and invalid input.
Number values
In all tests, the named parameters take default values.
| Number | Output |
|---|---|
| 0 | zero |
| 10 | ten |
| 21 | twenty-one |
| 32 | thirty-two |
| 43 | forty-three |
| 54 | fifty-four |
| 65 | sixty-five |
| 76 | seventy-six |
| 87 | eighty-seven |
| 98 | ninety-eight |
| 100 | one hundred |
| 210 | two hundred and ten |
| 321 | three hundred and twenty-one |
| 432 | four hundred and thirty-two |
| 453 | five hundred and forty-three |
| 654 | six hundred and fifty-four |
| 765 | seven hundred and sixty-five |
| 876 | eight hundred and seventy-six |
| 987 | nine hundred and eighty-seven |
| 999 | nine hundred and ninety-nine |
| 1000 | {{Cardinal to word/0 to 999}}: value "1000" is not a natural number in the range 0 to 999
|
| pi | {{Cardinal to word/0 to 999}}: value "pi" is not a natural number in the range 0 to 999
|
| NaN | Expression error |
| (empty) | Expression error |
| (missing) | Expression error |
Named parameters
zero
| Number | zero= | Output |
|---|---|---|
| 0 | none | none |
| 111 | one hundred and eleven | |
| 222 | none | two hundred and twenty-two |
| 0 | (empty) | |
| 0 | (missing) | zero |