From 993277e2c6c842b3344b486eb934c1bcb1156aed Mon Sep 17 00:00:00 2001 From: Li Xiaoming Date: Mon, 9 Sep 2019 13:31:26 +0800 Subject: 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 --- docs/Reference/LuaUnitAssertionFunctions/1_ValueAssertions.md | 10 +++++----- docs/Reference/LuaUnitAssertionFunctions/6_TableAssertions.md | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'docs/Reference/LuaUnitAssertionFunctions') 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 +``` -- cgit 1.2.3-korg