Module:UnitTests/doc: Difference between revisions

Content deleted Content added
Methods: another section per option
equals_deep: warning about circular references
Line 52:
</syntaxhighlight>
=== equals_deep ===
* {{code|1=equals_deep(name, actual, expected)}}: Like equals, but handles tables by doing a deep comparison. Neither value should contain circular references, as they are not handled by the current implementation and may result in an infinite loop.
<syntaxhighlight lang="lua">
self:equals_deep('Table comparison', createRange(1,3), {1,2,3})