summaryrefslogtreecommitdiff
path: root/Examples/test-suite/matlab/li_cwstring_runme.m
blob: f481daadfc49a814a101eaab338c2d917520907e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
if (li_cwstring.count('ab\0ab\0ab\0', 0) ~= 3)
    error    
end

if (~strcmp(li_cwstring.test1(),'Hello World'))
    error
end

if (~strcmp(li_cwstring.test2(),' !\'#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_'))
    error
end

if (~strcmp(li_cwstring.test3('hello'),'hello-suffix'))
    error
end

if (~strcmp(li_cwstring.test4('hello'),'hello-suffix'))
    error
end
    
if (~strcmp(li_cwstring.test5(4),'xxxx'))
    error
end

if (~strcmp(li_cwstring.test6(10),'xxxxx'))
    error
end
    
if (~strcmp(li_cwstring.test7(),'Hello world!'))
    error
end

if (~strcmp(li_cwstring.test8(),' !\'#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_'))
    error
end