Module:Sandbox/Erutuon/author citation/testcases

-- Example Unit tests for Module:Bananas. Click talk page to run tests. local p = require "Module:UnitTests" local mod = require "Module:Sandbox/Erutuon/author citation"

function p:test_link_author_citation local examples = { { "L.", "L." }, { "Carl Linnaeus", "Carl Linnaeus" }, -- ??? {			"Cham. & Schldl.", "Cham. & Schldl." },		{			"(L.) A. J. Eames & B. Boivin", "(L.) A. J. Eames & B. Boivin" },		{			"(L.) A.J.Eames & B.Boivin", "(L.) A.J.Eames & B.Boivin" },	}	self:iterate(		examples,		function (self, example, expected)			self:equals(example, mod.link_author_citation(example), expected)		end) end

return p