Content deleted Content added
m corrected typo and explained why this typo often crops up |
m Fixed typo |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1:
-- Unit tests for [[Module:
-- NB: If you ever see a failure on the results page even though the text seems like it's
Line 9:
-- [[s:Bible_(King_James)/Genesis|Gen.]]) it will throw an error because the
-- link generated by the module will just be [[s:Bible (King James)/Genesis|Gen.]].
-- This is really
-- HTML that you see on the results page, it has in fact swapped in underscores
-- for those spaces! But that is what is going on. FYI :)
Line 245:
function p:test_46_forgotten_2nd_param_3()
self:preprocess_equals('{{LDS|Alma|7|11|–13, 23–24|||x}}', '[[s:Book of Mormon (1981)/Alma#7:11|Alma 7:11–13, 23–24]]')
end
-- Forgotten second parameter and abbreviation in displayText
function p:test_47_forgotten_2nd_param_4()
self:preprocess_equals('{{LDS|2 Ne.|4|28|30}}', '[[s:Book of Mormon (1981)/2 Nephi#4:28|2 Ne. 4:28–30]]')
end
-- Graceful error handling for bad LoF numbers
function p:test_48_bad_lof_param()
self:preprocess_equals('{{LDS|Lectures about Faith|lof|8}}', '[[s:Lectures on Faith|Lectures about Faith 8 (invalid)]]')
end
|