Module:Authority control/testcases explained

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

function p:test_authority_control

self:preprocess_equals('','

Authority control

\n* WorldCat\n* VIAF:

59263727\n* LCCN: n79113947\n* ISNI: 0000 0000 8138 6064\n* GND: 119408643\n* BNF: cb13746617f\n* MusicBrainz: 9dd93d09-24b4-41f1-a48b-ef48b07499c3\n
')

self:preprocess_equals('','

Authority control

\n* WorldCat\n* VIAF:

66861474\n* LCCN: n87142671\n* ISNI: 0000 0001 0911 2808\n* GND: 117421863\n
')

self:preprocess_equals('','

Authority control

\n* WorldCat\n* VIAF:

76349832\n* LCCN: n79006779\n* GND: 11857308X\n* ULAN: 500344436\n
')

self:preprocess_equals('','

Authority control

\n* WorldCat\n* VIAF:

59263727\n* LCCN: n79113947\n* ISNI: 0000 0000 8138 6064\n* GND: 119408643\n* BNF: cb13746617f\n* MusicBrainz: 9dd93d09-24b4-41f1-a48b-ef48b07499c3\n
')

self:preprocess_equals('','

Authority control

\n* WorldCat\n* VIAF:

7524651\n* LCCN: n79004182\n* GND: 118650130\n
')

self:preprocess_equals('','

Authority control

\n* WorldCat\n* VIAF:

71392434\n* LCCN: n80057246\n* GND: 118555081\n* LIBRIS: 242878\n
')

self:preprocess_equals('','

Authority control

\n* WorldCat\n* VIAF:

75121530\n* LCCN: n79022889\n* ISNI: 0000 0001 2281 955X\n* GND: 118529579\n* LIBRIS: 184709\n* BNF: cb119016075\n* ResearcherID: I-6013-2012\n* ULAN: 500240971\n
')

self:preprocess_equals('','

Authority control

\n* WorldCat\n* VIAF:

39483748\n* LCCN: n81147736\n* GND: 118588370\n
')

self:preprocess_equals('','

Authority control

\n* WorldCat\n* LCCN:

n78090836\n
')

end

return p