-- Example Unit tests for [[Module:Bananas]]. Click talk page to run tests.
--{{CSD Placeholder}}
--另见英文版。还没搞懂怎么make_tests,以及测试的流程。
local p = require('Module:UnitTests')
function p:test_authority_control()
self:preprocess_equals('{{Authority control|NCL_URL = 000089061 |CALIS_URL = ff422c3932898577831ce1c745539d92 |NLC_URL = 000092507}}','<table cellspacing="0" class="navbox" style="border-spacing:0;"><tr><td style="padding:2px;"><table cellspacing="0" class="nowraplinks hlist navbox-inner" style="border-spacing:0;background:transparent;color:inherit;"><tr><th scope="row" class="navbox-group">[[Authority control]]</th><td class="navbox-list navbox-odd" style="text-align:left;border-left-width:2px;border-left-style:solid;width:100%;padding:0px;"><div style="padding:0em 0.25em;">\n* [http://www.worldcat.org/identities/lccn-n79-113947 WorldCat]\n* [[Virtual International Authority File|VIAF]]: <span class="uid">[http://viaf.org/viaf/59263727 59263727][[Category:Miscellaneous pages with VIAF identifiers]]</span>\n* [[Library of Congress Control Number|LCCN]]: <span class="uid">[http://id.loc.gov/authorities/names/n79113947 n79113947][[Category:Miscellaneous pages with LCCN identifiers]]</span>\n* [[International Standard Name Identifier|ISNI]]: <span class="uid">[http://isni-url.oclc.nl/isni/0000000081386064 0000 0000 8138 6064][[Category:Miscellaneous pages with ISNI identifiers]]</span>\n* [[Integrated Authority File|GND]]: <span class="uid">[http://d-nb.info/gnd/119408643 119408643][[Category:Miscellaneous pages with GND identifiers]]</span>\n* [[Bibliothèque nationale de France|BNF]]: <span class="uid">[http://catalogue.bnf.fr/ark:/12148/cb13746617f cb13746617f][[Category:Miscellaneous pages with BNF identifiers]]</span>\n* [[MusicBrainz]]: <span class="uid">[https://musicbrainz.org/artist/9dd93d09-24b4-41f1-a48b-ef48b07499c3 9dd93d09-24b4-41f1-a48b-ef48b07499c3][[Category:Miscellaneous pages with MusicBrainz identifiers]]</span>\n</div></td></tr></table></td></tr></table>')
end
return p