Module:Stock tickers/NYSE/testcases: Difference between revisions
Appearance
Content deleted Content added
Svgalbertian (talk | contribs) No edit summary |
Svgalbertian (talk | contribs) another example |
||
Line 4: | Line 4: | ||
function p:test_preferred_shares() |
function p:test_preferred_shares() |
||
self:preprocess_equals('{{#invoke:Stock tickers/NYSE | GetURL | PRE.PRD}}', 'http://www.nyse.com/quote/XNYS:PREpD') |
self:preprocess_equals('{{#invoke:Stock tickers/NYSE | GetURL | PRE.PRD}}', 'http://www.nyse.com/quote/XNYS:PREpD') |
||
self:preprocess_equals('{{#invoke:Stock tickers/NYSE | GetURL | BCS.PR}}', 'http://www.nyse.com/quote/XNYS:BCSp') |
|||
end |
end |
||
Revision as of 12:58, 3 August 2014
![]() | This is the test cases page for the module Module:Stock tickers/NYSE. Results of the test cases. |
-- 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')
self:preprocess_equals('{{#invoke:Stock tickers/NYSE | GetURL | BCS.PR}}', 'http://www.nyse.com/quote/XNYS:BCSp')
end
return p