summaryrefslogtreecommitdiff
path: root/test/strstrip.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-09-14 23:15:07 -0400
committerOri Bernstein <ori@eigenstate.org>2014-09-14 23:15:07 -0400
commit7ba5cd3848e0d7acc521623a97501a6d9b68d871 (patch)
treea276a257dff1e9332b60cc491c352c846c20df4a /test/strstrip.myr
parentaa4849acf33141833a8383548ac367d6d072e129 (diff)
downloadmc-7ba5cd3848e0d7acc521623a97501a6d9b68d871.tar.gz
Add test cases for strstrip.
Diffstat (limited to 'test/strstrip.myr')
-rw-r--r--test/strstrip.myr5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/strstrip.myr b/test/strstrip.myr
index d66373c..733e68e 100644
--- a/test/strstrip.myr
+++ b/test/strstrip.myr
@@ -1,6 +1,11 @@
use std
const main = {
+ std.put("\"%s\"\n", std.strstrip("cccc"))
+ std.put("\"%s\"\n", std.strfstrip("cccc"))
+ std.put("\"%s\"\n", std.strrstrip("cccc"))
+
+ std.put("--\n")
std.put("\"%s\"\n", std.strstrip(" abc "))
std.put("\"%s\"\n", std.strfstrip(" abc "))
std.put("\"%s\"\n", std.strrstrip(" abc "))