Jump to content

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

From Wikipedia, the free encyclopedia
Content deleted Content added
test cases
 
No edit summary
Line 2: Line 2:
local p = require('Module:UnitTests')
local p = require('Module:UnitTests')


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

Revision as of 12:37, 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}}', 'https://www.nyse.com/quote/XNYS:PREpD')
end

return p