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

Jump to content

Module:Lang-hbs/testcases

From Wikipedia, the free encyclopedia
local p = require('Module:UnitTests')

function p:test_convert_cyr()
    self:preprocess_equals('{{#invoke:lang-hbs/sandbox|convert|cyrillic=Краљевина Југославија}}', '{{#invoke:lang-hbs|convert|cyrillic=Краљевина Југославија}}')
end

function p:test_convert_lat()
    self:preprocess_equals('{{#invoke:lang-hbs/sandbox|convert|latin=Kraljevina Jugoslavija}}', '{{#invoke:lang-hbs|convert|latin=Kraljevina Jugoslavija}}')
end

function p:test_convert_cyr_and_lat()
    self:preprocess_equals('{{#invoke:lang-hbs/sandbox|convert|cyrillic=Краљевина Југославија|latin=Kraljevina Jugoslavija}}', '{{#invoke:lang-hbs|convert|cyrillic=Краљевина Југославија|latin=Kraljevina Jugoslavija}}')
end

function p:test_convert_wrong()
    self:preprocess_equals('{{#invoke:lang-hbs/sandbox|convert|latin=Kraljevina Jugoslavija}}', '{{#invoke:lang-hbs|convert|latin=Kraljevina Jugoslavija}}')
end

function p:test_cyr2lat()
    self:preprocess_equals('{{#invoke:lang-hbs/sandbox|cyr2lat|Краљевина Југославија}}', '{{#invoke:lang-hbs|cyr2lat|Краљевина Југославија}}')
end

function p:test_lat2cyr()
    self:preprocess_equals('{{#invoke:lang-hbs/sandbox|lat2cyr|Kraljevina Jugoslavija}}', '{{#invoke:lang-hbs|lat2cyr|Kraljevina Jugoslavija}}')
end

return p