aboutsummaryrefslogtreecommitdiffstats
path: root/docs/Reference/LuaUnitAssertionFunctions
diff options
context:
space:
mode:
Diffstat (limited to 'docs/Reference/LuaUnitAssertionFunctions')
-rw-r--r--docs/Reference/LuaUnitAssertionFunctions/1_ValueAssertions.md10
-rw-r--r--docs/Reference/LuaUnitAssertionFunctions/6_TableAssertions.md8
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
+```