aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-09-28 12:20:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-09-28 12:20:40 +0200
commite6d5f9148dea1a1a69d728056e9695e14f0fb050 (patch)
treee703f2acba21327d1c9697731322e6b08e98c77d /tests
parent482d28f130511e7ce5f94dfcb03e020b4e1d9831 (diff)
Add $string.trim() function
Diffstat (limited to 'tests')
-rw-r--r--tests/function/string/testscript7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/function/string/testscript b/tests/function/string/testscript
index d42add7..9275fe5 100644
--- a/tests/function/string/testscript
+++ b/tests/function/string/testscript
@@ -24,3 +24,10 @@
$* <'print $string.icasecmp("a", "b")' >'false' : untyped-untyped
}
}
+
+: trim
+:
+{
+ $* <'print $trim([string] " a ")' >'a' : string
+ $* <'print $string.trim( " a ")' >'a' : untyped
+}