Jump to content

Module:Flag/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by GKFX (talk | contribs) at 12:29, 5 February 2023 (GKFX changed the content model of the page Module:Flag/testcases from "Scribunto" to "wikitext": These testcases are better suited to {{test case}} than the Lua unit test code.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

-- Unit tests for Module:Flag. Click talk page to run tests. local p = require('Module:UnitTests')

-- Example unit test. function p:test_athlete() self:preprocess_equals_sandbox_many('{{#invoke:Flag', 'athlete', { { "Andy Murray", "GBR" }, { "John Smith", "Xanadu", code="XAN" }, }, {}) end

return p