summaryrefslogtreecommitdiff
path: root/lib/std/test
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-03-18 21:45:39 -0700
committerOri Bernstein <ori@eigenstate.org>2017-03-18 21:45:39 -0700
commit57d9a13a1046c79a3393317c47f93ebb54807786 (patch)
tree4f517748ccb517ea007b1deef56287e7b1bf76be /lib/std/test
parent003c3c95490986905616bd7c79b9ab2a9d65e115 (diff)
downloadmc-57d9a13a1046c79a3393317c47f93ebb54807786.tar.gz
We want to remove trailing spaces when tokenizing.
Even if we run out of slots, the trailing spaces should be removed.
Diffstat (limited to 'lib/std/test')
-rw-r--r--lib/std/test/strsplit.myr1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/test/strsplit.myr b/lib/std/test/strsplit.myr
index e6dd7a8..c70f6f6 100644
--- a/lib/std/test/strsplit.myr
+++ b/lib/std/test/strsplit.myr
@@ -27,6 +27,7 @@ const main = {
/* buffered tokenizing */
check(std.bstrtok(b[:], "a b c\td"), ["a", "b", "c", "d"][:])
check(std.bstrtok(b[:2], "a b c\td"), ["a", "b c\td"][:])
+ check(std.bstrtok(b[:2], "a b c\td "), ["a", "b c\td"][:])
}
const check = {a, b