2008-01-06 22:21:58 -05:00
|
|
|
USING: math.functions math.text.english tools.test ;
|
2008-03-01 17:00:45 -05:00
|
|
|
IN: math.text.english.tests
|
2007-12-24 00:06:53 -05:00
|
|
|
|
2015-07-02 16:37:42 -04:00
|
|
|
[ "zero" ] [ 0 number>text ] unit-test
|
|
|
|
[ "twenty-one" ] [ 21 number>text ] unit-test
|
|
|
|
[ "one hundred" ] [ 100 number>text ] unit-test
|
|
|
|
[ "one hundred and one" ] [ 101 number>text ] unit-test
|
|
|
|
[ "one thousand and one" ] [ 1001 number>text ] unit-test
|
|
|
|
[ "one thousand, one hundred and one" ] [ 1101 number>text ] unit-test
|
|
|
|
[ "one million, one thousand and one" ] [ 1001001 number>text ] unit-test
|
|
|
|
[ "one million, one thousand, one hundred and one" ] [ 1001101 number>text ] unit-test
|
|
|
|
[ "one million, one hundred and eleven thousand, one hundred and eleven" ] [ 1111111 number>text ] unit-test
|
|
|
|
[ "one duotrigintillion" ] [ 10 99 ^ number>text ] unit-test
|
2007-12-24 00:06:53 -05:00
|
|
|
|
2015-07-02 16:37:42 -04:00
|
|
|
[ "negative one hundred and twenty-three" ] [ -123 number>text ] unit-test
|