summaryrefslogtreecommitdiffstats
path: root/docs/Reference/LuaUnitAssertionFunctions/6_TableAssertions.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/Reference/LuaUnitAssertionFunctions/6_TableAssertions.md')
-rw-r--r--docs/Reference/LuaUnitAssertionFunctions/6_TableAssertions.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/Reference/LuaUnitAssertionFunctions/6_TableAssertions.md b/docs/Reference/LuaUnitAssertionFunctions/6_TableAssertions.md
index 8d29988..1122bfc 100644
--- a/docs/Reference/LuaUnitAssertionFunctions/6_TableAssertions.md
+++ b/docs/Reference/LuaUnitAssertionFunctions/6_TableAssertions.md
@@ -7,13 +7,13 @@
This function is practical for example if you want to compare two lists but
where items are not in the same order:
- ```lua
+```lua
luaunit.assertItemsEquals( {1,2,3}, {3,2,1} ) -- assertion succeeds
- ```
+```
The comparison is not recursive on the items: if any of the items are tables,
they are compared using table equality (like as in assertEquals() ), where the
key matters.
- ```lua
+```lua
luaunit.assertItemsEquals( {1,{2,3},4}, {4,{3,2,},1} ) -- assertion fails because {2,3} ~= {3,2}
- ``` \ No newline at end of file
+```