Content deleted Content added
No edit summary |
mNo edit summary |
||
Line 66:
suite:assertParsedNumberEquals(10345678901234567.12345678, '10345678901234567.12345678')
suite:assertParsedNumberEquals(-10345678901234567.12345678, '-10345678901234567.12345678')
suite:assertParsedNumberEquals(5.4321e10, '5.4321e10')
suite:assertParsedNumberEquals(-5.4321e10, '-5.4321e10')
suite:assertParsedNumberEquals(5.4321e-10, '5.4321e-10')
suite:assertParsedNumberEquals(-5.4321e-10, '-5.4321e-10')
suite:assertParsedNumberEquals(math.huge, '5.4321e308')
suite:assertParsedNumberEquals(-math.huge, '-5.4321e308')
end
Line 78 ⟶ 84:
suite:assertErrorContains("'a1' is not a valid number", function ()
Nts.new{'a1'}
end)
suite:assertErrorContains("Fractions are not supported", function ()
Nts.new{'1/2'}
end)
end
|