Module:Number table sorting/testcases: Difference between revisions

Content deleted Content added
mNo edit summary
Update after move
 
(8 intermediate revisions by 2 users not shown)
Line 1:
local mNts = require('Module:NtsNumber table sorting') -- the module to be tested
local Nts = mNts._exportClasses().Nts -- the Nts class
local ScribuntoUnit = require('Module:ScribuntoUnit')
Line 140:
-- suite:assertSortKeyEquals('2969456789999999999♠', {'-5.4321e30'}) original test value
suite:assertSortKeyEquals('2969456790000000000♠', {'-5.4321e30'}) -- correct
-- suite:assertSortKeyEquals('2899456780000000000♠', {'-5.4321e100'}) original test value
suite:assertSortKeyEquals('2799456789999999999♠2899456790000000000♠', {'-5.4321e2004321e100'}) -- correct
-- suite:assertSortKeyEquals('2699456790000000000♠2799456789999999999♠', {'-5.4321e3004321e200'}) original test value
suite:assertSortKeyEquals('2799456790000000000♠', {'-5.4321e200'}) -- correct
suite:assertSortKeyEquals('2699456790000000000♠', {'-5.4321e300'})
suite:assertSortKeyEquals('1000000000000000000♠', {'-5.4321e400'})
suite:assertSortKeyEquals('6990543210000000000♠', {'5.4321e-10'})
Line 153 ⟶ 155:
suite:assertSortKeyEquals('3009456790000000000♠', {'-5.4321e-10'})
suite:assertSortKeyEquals('3019456789999999999♠', {'-5.4321e-20'})
-- suite:assertSortKeyEquals('3029456790000000000♠', {'-5.4321e-30'}) original test value
suite:assertSortKeyEquals('3099456789999999999♠3029456789999999999♠', {'-5.4321e-10030'}) -- almost
-- suite:assertSortKeyEquals('3199456780000099999♠3099456789999999999♠', {'-5.4321e-200100'}) original test value
suite:assertSortKeyEquals('3099456790000000000♠', {'-5.4321e-100'}) -- correct
-- suite:assertSortKeyEquals('3199456780000099999♠', {'-5.4321e-200'}) original test value
suite:assertSortKeyEquals('3199456789999999999♠', {'-5.4321e-200'}) -- almost
suite:assertSortKeyEquals('3299456780000000000♠', {'-5.4321e-300'})
suite:assertSortKeyEquals('5000000000000000000♠', {'-5.4321e-400'})