12 lines
383 B
Text
12 lines
383 B
Text
local fmt = require "fmt"
|
|
|
|
local tests = {0, 1, 7, 10, 18, 22, 67, 99, 100, 105, 123, 999, -1056, 1000005000, 2074000000, 1234000000745003, math.mininteger}
|
|
local isuk = {false, true}
|
|
local langs = {"US", "UK"}
|
|
for i = 1, 2 do
|
|
print($"{langs[i]} English:")
|
|
for tests as test do
|
|
fmt.print("% 20d -> %s", test, fmt.spell(test, false, isuk[i]))
|
|
end
|
|
print()
|
|
end
|