Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a21e6dc8ad353a24

Jump to content

Module:GS pay/testcases

From Wikipedia, the free encyclopedia
-- Unit tests for [[Module:GS pay]]. Click talk page to run tests.
local p = require('Module:UnitTests')

-- Test cases using 2020 numbers
function p:test_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