Module talk:Footnotes: Difference between revisions

Content deleted Content added
test cases: new section
Line 104:
 
Hi. I've just run the test cases against some small changes to the code in the sandbox, with lamentable results. I reverted my changes and the test cases still fail. Is this expected? Alternatively, should I copy the main code into the sandbox to ensure that the sandbox code is up to date? I don't want to damage anyone else's work. Regards, [[User:Martin of Sheffield|Martin of Sheffield]] ([[User talk:Martin of Sheffield|talk]]) 22:40, 21 August 2017 (UTC)
:The {{tlx|sfn}} tests have never 'passed' as far as I know because two {{tld|sfn}} templates with identical input parameters must be separately distinguishable from each other else the back-links won't work. Two instances of the same template:
::<code><nowiki>{{sfn|brown|red|orange|2017}}</nowiki></code>
:produce:
::<code><nowiki><sup id="cite_ref-FOOTNOTEbrownredorange2017_1-0" class="reference"><a href="#cite_note-FOOTNOTEbrownredorange2017-1">&amp;#91;1&amp;#93;</a></sup></nowiki></code>
::<code><nowiki><sup id="cite_ref-FOOTNOTEbrownredorange2017_1-1" class="reference"><a href="#cite_note-FOOTNOTEbrownredorange2017-1">&amp;#91;1&amp;#93;</a></sup></nowiki></code>
:I suspect that the values used in the comparison made by the test code are the values of two stripmarkers:
::<code>'"`UNIQ--ref-0000000A-QINU`"'</code>
::<code>'"`UNIQ--ref-0000000C-QINU`"'</code>
:Stripmarkers are replaced with actual content long after the template and module code has run.
:—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 09:48, 22 August 2017 (UTC)