hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

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:
Mstrings/trim.ha | 2+-
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");