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"));