Module:Stock tickers/NYSE/testcases explained

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

-- Special URLs for preferred shares and when issued.function p:test_preferred_shares self:preprocess_equals('', 'https://www.nyse.com/quote/XNYS:PREpD') self:preprocess_equals('', 'https://www.nyse.com/quote/XNYS:BCSp') self:preprocess_equals('', 'https://www.nyse.com/quote/XNYS:TPUBw')end

function p:test_exchanges self:preprocess_equals('', 'https://www.nyse.com/quote/XNYS:GE') self:preprocess_equals('', 'https://www.nyse.com/quote/XNYS:GE') self:preprocess_equals('', 'https://www.nyse.com/quote/XASE:BTI') self:preprocess_equals('', 'https://www.nyse.com/quote/ARCX:SPY')end

return p