summaryrefslogtreecommitdiffstats
path: root/docs/WriteYourTests/Reference/LuaUnitAssertionFunctions/3_StringAssertions.md
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-10-29 18:37:26 +0100
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2018-10-31 21:03:06 +0000
commit2f3654275e44f9719818a848da9a0b576d5a1b53 (patch)
treeff75764bbb2e3037f73f95a96ac5ed2fcba93465 /docs/WriteYourTests/Reference/LuaUnitAssertionFunctions/3_StringAssertions.md
parent2a7b4defe300dfe5eb19f775bd819e2d300b7453 (diff)
Docs reorganization and update
Docs reorganization and update using the latest afb-test improvments and try to make it clearer. Change-Id: If022cdb46364ef250361bdcd420d45b360f10a2e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'docs/WriteYourTests/Reference/LuaUnitAssertionFunctions/3_StringAssertions.md')
-rw-r--r--docs/WriteYourTests/Reference/LuaUnitAssertionFunctions/3_StringAssertions.md38
1 files changed, 0 insertions, 38 deletions
diff --git a/docs/WriteYourTests/Reference/LuaUnitAssertionFunctions/3_StringAssertions.md b/docs/WriteYourTests/Reference/LuaUnitAssertionFunctions/3_StringAssertions.md
deleted file mode 100644
index a816998..0000000
--- a/docs/WriteYourTests/Reference/LuaUnitAssertionFunctions/3_StringAssertions.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# String assertions
-
-Assertions related to string and patterns.
-
-* **_AFT.assertStrContains(str, sub[, useRe])**
-
- Assert that a string contains the given substring or pattern.
-
- By default, substring is searched in the string. If useRe is provided and is
- true, sub is treated as a pattern which is searched inside the string str.
-
-* **_AFT.assertStrIContains(str, sub)**
-
- Assert that a string contains the given substring, irrespective of the case.
-
- Not that unlike assertStrcontains(), you can not search for a pattern.
-
-* **_AFT.assertNotStrContains(str, sub, useRe)**
-
- Assert that a string does not contain a given substring or pattern.
-
- By default, substring is searched in the string. If useRe is provided and is
- true, sub is treated as a pattern which is searched inside the string str.
-
-* **_AFT.assertNotStrIContains(str, sub)**
-
- Assert that a string does not contain the given substring, irrespective of
- the case.
-
- Not that unlike assertNotStrcontains(), you can not search for a pattern.
-
-* **_AFT.assertStrMatches(str, pattern[, start[, final]])**
-
- Assert that a string matches the full pattern pattern.
-
- If start and final are not provided or are nil, the pattern must match the
- full string, from start to end. The functions allows to specify the expected
- start and end position of the pattern in the string. \ No newline at end of file