summaryrefslogtreecommitdiffstats
path: root/test/04-function-rept.txt
blob: 031a854d1ee36a648e5a9ae47adb0187b7df8f0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%mode init
A1=REPT("a", 0)
A2=REPT("a", 1)
A3=REPT("a", 2)
A4=REPT("a", 3)
A5=REPT("a", -1)
B1=REPT("<->", 5)
B2=REPT(RIGHT("abcdef", 3), 2)
%calc
%mode result
A1=""
A2="a"
A3="aa"
A4="aaa"
A5=#VALUE!
B1="<-><-><-><-><->"
B2="defdef"
%check