summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSerge Steer <serge.steer@scilab.org>2007-05-16 15:03:17 +0000
committerSerge Steer <serge.steer@scilab.org>2007-05-16 15:03:17 +0000
commitdc9171841a054db406a47d73b226c586dc9c9386 (patch)
treee8243b136da3864962732cfb3f9e7ed043a2c7e4 /tests
parent7fbbaca25249db8496270aa9eb7557023f84d789 (diff)
downloadscilab-dc9171841a054db406a47d73b226c586dc9c9386.zip
scilab-dc9171841a054db406a47d73b226c586dc9c9386.tar.gz
bug396 fixed
Diffstat (limited to 'tests')
-rw-r--r--tests/nonRegression/bug2396.sci14
-rw-r--r--tests/nonRegression/list_nonreg.txt1
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/nonRegression/bug2396.sci b/tests/nonRegression/bug2396.sci
new file mode 100644
index 0000000..29b5a13
--- /dev/null
+++ b/tests/nonRegression/bug2396.sci
@@ -0,0 +1,14 @@
1// Non-regression test file for bug 2396
2// Serge Steer - Scilab Project
3// Copyright INRIA
4// 14 may 2007
5
6mode(-1);
7clear;
8
9a1 = [1 2 3]
10a2 = [1 3 4 5 1 6 7]
11function y=elfind(x),y = (find(a2 == x) ~= []),endfunction
12T=execstr('z=feval(a1,elfind)','errcatch')==98
13
14affich_result(T,2396);
diff --git a/tests/nonRegression/list_nonreg.txt b/tests/nonRegression/list_nonreg.txt
index 07c9bda..fc78621 100644
--- a/tests/nonRegression/list_nonreg.txt
+++ b/tests/nonRegression/list_nonreg.txt
@@ -166,3 +166,4 @@
1662341 1662341
1672344 1672344
1682362 1682362
1692396