aboutsummaryrefslogtreecommitdiffstats
path: root/docs/Reference/LuaUnitAssertionFunctions/6_TableAssertions.md
diff options
context:
space:
mode:
authorLi Xiaoming <lixm.fnst@cn.fujitsu.com>2019-09-09 13:31:26 +0800
committerRomain Forlot <romain.forlot@iot.bzh>2019-09-09 13:39:57 +0000
commit993277e2c6c842b3344b486eb934c1bcb1156aed (patch)
tree3214baad3e3f3f368e57e42672eb74b1360ffe81 /docs/Reference/LuaUnitAssertionFunctions/6_TableAssertions.md
parent734c85f387506b84ee54e4d353e70aa671a8317e (diff)
docs: Fix markdown syntax
1) Fenced code blocks's keyword "```" should be placed in row 0, or markdown interpreter will not recognize it; 2) Add blank line between header and content to produce line break. Bug-AGL: SPEC-2714 Change-Id: I535a5b906df1b9839befa45bd37e921686cb59ae Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
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
+```