commit dbf3899d5edab7f1e22322514ce71c91c0e17309
parent 5c38d763a4f14823ea8efeeb28068a8542737ace
Author: Bor GroΕ‘elj SimiΔ <bgs@turminal.net>
Date: Fri, 3 Feb 2023 04:25:38 +0100
strings: document non-obvious trim testcase
Signed-off-by: Bor GroΕ‘elj SimiΔ <bgs@turminal.net>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/strings/trim.ha b/strings/trim.ha
@@ -101,7 +101,7 @@ export fn trimsuffix(input: str, trim: str) str = {
assert(ltrim("\t\r\n hello") == "hello");
assert(ltrim("((()(())))())", '(', ')') == "");
assert(ltrim("abacadabra", 'a', 'b', 'c', 'd') == "ra");
- assert(ltrim("ππππππππππ", 'π', 'π', 'π', 'π') == "ππ");
+ assert(ltrim("ππππππππππ", 'π', 'π', 'π', 'π') == "ππ"); // 'π' = U+1D68A
assert(rtrim("") == "");
assert(rtrim("hello ") == "hello");