Content deleted Content added
→Test a string contains expected text: new section |
→Compare template vs. module: new section |
||
Line 26:
Please see [[Module talk:ScribuntoUnit#Test a string contains expected text]] for an enhancement request. --[[User:Derbeth|Derbeth]] [[User talk:Derbeth|<sup>talk</sup>]] 21:41, 1 January 2014 (UTC)
== Compare template vs. module ==
When comparing template vs. module, going with "==" seems wrong. The template and module may differ in e.g. number and types of HTML whitespaces which don't matter, or HTML representations ( , etc..). I think this is a good sample: [[Module:Sandbox/Dts/testcases]].
At first stage, I'd suggest making first_difference a member function. If this member function returns nil then strings are considered identical. This will allow tests to define their own method. Second stage will be to offer some pre-created options..
[[User:Tsahee|Tsahee]] ([[User talk:Tsahee|talk]]) 20:44, 19 January 2014 (UTC)
|