-- Example Unit tests for [[Module:Factorization]]. Click talk page to run tests.localp=require('Module:UnitTests')functionp:test_factor()fori=0,100doself:preprocess_equals_preprocess('{{#invoke:Thai number|toWord|'..tostring(i)..'}}','{{#invoke:Thai number/sandbox|toWord|'..tostring(i)..'}}')endfori=100,10000000,100000doself:preprocess_equals_preprocess('{{#invoke:Thai number|toWord|'..tostring(i)..'}}','{{#invoke:Thai number/sandbox|toWord|'..tostring(i)..'}}')self:preprocess_equals_preprocess('{{#invoke:Thai number|toWord|'..tostring(i+1)..'}}','{{#invoke:Thai number/sandbox|toWord|'..tostring(i+1)..'}}')endendreturnp