diff options
author | Li Xiaoming <lixm.fnst@cn.fujitsu.com> | 2019-09-09 13:31:26 +0800 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2019-09-09 13:39:57 +0000 |
commit | 993277e2c6c842b3344b486eb934c1bcb1156aed (patch) | |
tree | 3214baad3e3f3f368e57e42672eb74b1360ffe81 /docs/Reference/LuaUnitAssertionFunctions | |
parent | 734c85f387506b84ee54e4d353e70aa671a8317e (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')
-rw-r--r-- | docs/Reference/LuaUnitAssertionFunctions/1_ValueAssertions.md | 10 | ||||
-rw-r--r-- | docs/Reference/LuaUnitAssertionFunctions/6_TableAssertions.md | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/docs/Reference/LuaUnitAssertionFunctions/1_ValueAssertions.md b/docs/Reference/LuaUnitAssertionFunctions/1_ValueAssertions.md index ed927cd..103adf8 100644 --- a/docs/Reference/LuaUnitAssertionFunctions/1_ValueAssertions.md +++ b/docs/Reference/LuaUnitAssertionFunctions/1_ValueAssertions.md @@ -41,18 +41,18 @@ Example : - ```lua - `s1='toto' +```lua + s1='toto' s2='to'..'to' t1={1,2} t2={1,2} luaunit.assertIs(s1,s1) -- ok luaunit.assertIs(s1,s2) -- ok luaunit.assertIs(t1,t1) -- ok - luaunit.assertIs(t1,t2) -- fail` - ``` + luaunit.assertIs(t1,t2) -- fail +``` * **_AFT.assertNotIs(actual, expected)** Assert that two variables are not identical, in the sense that they do not - refer to the same value. See assertIs() for more details.
\ No newline at end of file + refer to the same value. See assertIs() for more details. 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 +``` |