Jump to content

Module:Stock tickers/NYSE/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Svgalbertian (talk | contribs) at 12:37, 3 August 2014. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- Example Unit tests for [[Module:Stock tickers/NYSE]]. Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test_preferred_shares()
    self:preprocess_equals('{{#invoke:Stock tickers/NYSE | GetURL | PRE.PRD}}', 'https://www.nyse.com/quote/XNYS:PREpD')
end

return p