summaryrefslogtreecommitdiffstats
path: root/test/04-function-substitute.txt
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:47:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:47:37 +0000
commit00e2eb4fd0266c5be01e3a527a66aaad5ab4b634 (patch)
treea6a58bd544eb0b76b9d3acc678ea88791acca045 /test/04-function-substitute.txt
parentInitial commit. (diff)
downloadlibixion-00e2eb4fd0266c5be01e3a527a66aaad5ab4b634.tar.xz
libixion-00e2eb4fd0266c5be01e3a527a66aaad5ab4b634.zip
Adding upstream version 0.19.0.upstream/0.19.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/04-function-substitute.txt')
-rw-r--r--test/04-function-substitute.txt34
1 files changed, 34 insertions, 0 deletions
diff --git a/test/04-function-substitute.txt b/test/04-function-substitute.txt
new file mode 100644
index 0000000..faa8fa7
--- /dev/null
+++ b/test/04-function-substitute.txt
@@ -0,0 +1,34 @@
+%mode init
+A1=SUBSTITUTE("I like my dogs.","dog","cat")
+A2=SUBSTITUTE("dog dog dog","dog","cat", 1)
+A3=SUBSTITUTE("dog dog dog","dog","cat", 2)
+A4=SUBSTITUTE("dog dog dog","dog","cat", 3)
+A5=SUBSTITUTE("dog dog dog","dog","cat", 4)
+A6=SUBSTITUTE("dog dog dog","dog","cat")
+A7=SUBSTITUTE("dogdogdog","dog","cat")
+A8=SUBSTITUTE("Dog and dog","dog","bird")
+A9=SUBSTITUTE("t","a","b",0)
+A10=SUBSTITUTE(111101,1,8)
+A11=SUBSTITUTE(111101,1,8,3)
+A12=SUBSTITUTE("いちにいちにいちに","いち","壱")
+A13=SUBSTITUTE("いちにいちにいちに","いち","壱",1)
+A14=SUBSTITUTE("いちにいちにいちに","いち","壱",2)
+A15=SUBSTITUTE("いちにいちにいちに","いち","壱",3)
+%calc
+%mode result
+A1="I like my cats."
+A2="cat dog dog"
+A3="dog cat dog"
+A4="dog dog cat"
+A5="dog dog dog"
+A6="cat cat cat"
+A7="catcatcat"
+A8="Dog and bird"
+A9=#VALUE!
+A10="888808"
+A11="118101"
+A12="壱に壱に壱に"
+A13="壱にいちにいちに"
+A14="いちに壱にいちに"
+A15="いちにいちに壱に"
+%check