summaryrefslogtreecommitdiffstats
path: root/tests/nonRegression/bug1110.sci
blob: 6af1ef84e4d7828d98325de03c0499ac1a3006a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// <-- Non-regression test for bug 1110 -->
//
// <-- Bugzilla URL -->
// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=1110
//
// <-- Short Description -->
//    parser or evaluator error


// bug1110
mode (-1)
clear 
L=list(4,5,[1 2]);
ok=execstr('z=L(3)(:)(1)','errcatch')==21
L=list(4,5,[1 1/%s]);
ok=ok&execstr('z=L(3)(1,:)(2)','errcatch')==0&and(z==[1 1])

affich_result(ok, 1110)
clear