summaryrefslogtreecommitdiff
path: root/src/string.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-09-20 17:18:43 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-09-20 17:18:43 +0100
commit459d0baf79dd2aa2a5bd0fb0f4f11cc80428c596 (patch)
tree6c546df74790558581dfc870e26371aeee433953 /src/string.cc
parent22f3881cadda565f00c3054f79ba06040e23256e (diff)
Tweak string unit tests
Diffstat (limited to 'src/string.cc')
-rw-r--r--src/string.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.cc b/src/string.cc
index 357b4f2f..b6d0f3de 100644
--- a/src/string.cc
+++ b/src/string.cc
@@ -349,8 +349,8 @@ UnitTest test_string{[]()
kak_assert(splitedview[5] == "hihi\\");
kak_assert(splitedview[6] == "");
- String escaped = escape("youpi:matin:tchou:", ':', '\\');
- kak_assert(escaped == "youpi\\:matin\\:tchou\\:");
+ kak_assert(escape("youpi:matin:tchou:", ':', '\\') == "youpi\\:matin\\:tchou\\:");
+ kak_assert(unescape("youpi\\:matin\\:tchou\\:", ':', '\\') == "youpi:matin:tchou:");
kak_assert(prefix_match("tchou kanaky", "tchou"));
kak_assert(prefix_match("tchou kanaky", "tchou kanaky"));