From e6d5f9148dea1a1a69d728056e9695e14f0fb050 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 28 Sep 2020 12:20:40 +0200 Subject: Add $string.trim() function --- tests/function/string/testscript | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') 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 +} -- cgit v1.1