summaryrefslogtreecommitdiffstats
path: root/test/04-function-trim.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/04-function-trim.txt')
-rw-r--r--test/04-function-trim.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/04-function-trim.txt b/test/04-function-trim.txt
new file mode 100644
index 0000000..7c47729
--- /dev/null
+++ b/test/04-function-trim.txt
@@ -0,0 +1,21 @@
+%mode init
+A1=TRIM("one two three")
+A2=TRIM(" one two three")
+A3=TRIM(" one two three ")
+A4=TRIM("A")
+A5=TRIM("A B")
+A6=TRIM("")
+A7=TRIM(12345)
+B1@ 日本 韓国 中国
+B2=TRIM(B1)
+%calc
+%mode result
+A1="one two three"
+A2="one two three"
+A3="one two three"
+A4="A"
+A5="A B"
+A6=""
+A7="12345"
+B2="日本 韓国 中国"
+%check