Jump to content

Module:Stock tickers/NYSE/testcases: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
No edit summary
Line 3: Line 3:


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



Revision as of 12:38, 3 August 2014

-- 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}}', 'http://www.nyse.com/quote/XNYS:PREpD')
end

return p