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: a21d83b87b99227c

Jump to content

Module:Road data/size/testcases

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

function p:test_size_wikitext()
	self:preprocess_equals('{{#invoke:Road data/size/sandbox|size|style=jct}}', '24px')
end

function p:test_size_lua()
	self:equals('Basic call', sandbox._size{style='infobox'}, '72px')
end

function p:test_ignoreUpright_lua()
	self:equals('Do ignore', sandbox._ignoreUpright('rdt'), true)
	self:equals('Do not ignore', sandbox._ignoreUpright('infobox'), false)
end

return p