Jump to content

Module:GS pay/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Bulhis899 (talk | contribs) at 02:29, 13 February 2020 (Created page with '-- Unit tests for [[Module:{{ROOTPAGENAME}}]]. Click talk page to run tests. local p = require('Module:UnitTests') -- Example unit test. function p:basePay() s...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
-- Unit tests for [[Module:{{ROOTPAGENAME}}]]. Click talk page to run tests.
local p = require('Module:UnitTests')

-- Example unit test.
function p:basePay()
	self:preprocess_equals('{{#invoke:GS pay | get | 1 | 10}}', '24448')
	self:preprocess_equals('{{#invoke:GS pay | get | 2 | 10}}', '27653')
	self:preprocess_equals('{{#invoke:GS pay | get | 1}}', '19543')
	self:preprocess_equals('{{#invoke:GS pay | get | 2}}', '21974')
	self:preprocess_equals('{{#invoke:GS pay | get | 4 | 5}}', '30503')
	self:preprocess_equals('{{#invoke:GS pay | get | 5}}', '30113')
	self:preprocess_equals('{{#invoke:GS pay | get}}', '')
end

return p