summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPierre Marechal <pierre.marechal@scilab.org>2007-06-05 07:57:11 +0000
committerPierre Marechal <pierre.marechal@scilab.org>2007-06-05 07:57:11 +0000
commit7e7fe628ef555c97b46ae76b905d5aa1128e7f2e (patch)
treede659019388b7f0d2107171d1b56e9cc9b281a22 /tests
parent92f483cff0970ab939fae8e10a840be0f8635ea8 (diff)
downloadscilab-7e7fe628ef555c97b46ae76b905d5aa1128e7f2e.zip
scilab-7e7fe628ef555c97b46ae76b905d5aa1128e7f2e.tar.gz
Non regression tests for bugs 2098, 2399, 2407, 2410 and 2414
Diffstat (limited to 'tests')
-rw-r--r--tests/nonRegression/bug2098.sci21
-rw-r--r--tests/nonRegression/bug2399.sci18
-rw-r--r--tests/nonRegression/bug2407.sci18
-rw-r--r--tests/nonRegression/bug2410.sci19
-rw-r--r--tests/nonRegression/bug2414.sci18
-rw-r--r--tests/nonRegression/list_nonreg.txt11
6 files changed, 105 insertions, 0 deletions
diff --git a/tests/nonRegression/bug2098.sci b/tests/nonRegression/bug2098.sci
new file mode 100644
index 0000000..e4c906d
--- /dev/null
+++ b/tests/nonRegression/bug2098.sci
@@ -0,0 +1,21 @@
1// Non-regression test file for bug 2098
2// Author : Scilab Project - Pierre MARECHAL
3// Copyright INRIA
4// Date : 05 mai 2007
5
6mode(-1);
7clear;
8
9function test
10 disp('test');
11endfunction
12
13ierr = execstr('showprofile(test)','errcatch');
14
15if( ierr == 1000 ) then
16 affich_result(%T,2098);
17else
18 affich_result(%F,2098);
19end
20
21clear
diff --git a/tests/nonRegression/bug2399.sci b/tests/nonRegression/bug2399.sci
new file mode 100644
index 0000000..cf934d5
--- /dev/null
+++ b/tests/nonRegression/bug2399.sci
@@ -0,0 +1,18 @@
1// Non-regression test file for bug 2399
2// Author : Scilab Project - Pierre MARECHAL
3// Copyright INRIA
4// Date : 05 mai 2007
5
6mode(-1);
7clear;
8
9toks = ['noddy';'holden'];
10vals = msscanf(-1,toks,'%f');
11
12if( vals == [] ) then
13 affich_result(%T,2399);
14else
15 affich_result(%F,2399);
16end
17
18clear
diff --git a/tests/nonRegression/bug2407.sci b/tests/nonRegression/bug2407.sci
new file mode 100644
index 0000000..c579df6
--- /dev/null
+++ b/tests/nonRegression/bug2407.sci
@@ -0,0 +1,18 @@
1// Non-regression test file for bug 2407
2// Author : Scilab Project - Pierre MARECHAL
3// Copyright INRIA
4// Date : 05 mai 2007
5
6mode(-1);
7clear;
8
9a = zeros(3,3,3);
10b = stdev(a);
11
12if( b == 0 ) then
13 affich_result(%T,2407);
14else
15 affich_result(%F,2407);
16end
17
18clear
diff --git a/tests/nonRegression/bug2410.sci b/tests/nonRegression/bug2410.sci
new file mode 100644
index 0000000..b14eef6
--- /dev/null
+++ b/tests/nonRegression/bug2410.sci
@@ -0,0 +1,19 @@
1// Non-regression test file for bug 2410
2// Author : Scilab Project - Pierre MARECHAL
3// Copyright INRIA
4// Date : 05 mai 2007
5
6mode(-1);
7clear;
8
9tic();
10string(zeros(1,10000)==1);
11a = toc();
12
13if( a < 0.1 ) then
14 affich_result(%T,2410);
15else
16 affich_result(%F,2410);
17end
18
19clear
diff --git a/tests/nonRegression/bug2414.sci b/tests/nonRegression/bug2414.sci
new file mode 100644
index 0000000..92b8224
--- /dev/null
+++ b/tests/nonRegression/bug2414.sci
@@ -0,0 +1,18 @@
1// Non-regression test file for bug 2414
2// Author : Scilab Project - Pierre MARECHAL
3// Copyright INRIA
4// Date : 05 mai 2007
5
6mode(-1);
7clear;
8
9a=[];
10a = string(a);
11
12if( (type(a) == 1) & (typeof(a) == "constant") & and(size(a) == [0 0]) & (a($,1)==[]) ) then
13 affich_result(%T,2414);
14else
15 affich_result(%F,2414);
16end
17
18clear
diff --git a/tests/nonRegression/list_nonreg.txt b/tests/nonRegression/list_nonreg.txt
index fc78621..99bd6cb 100644
--- a/tests/nonRegression/list_nonreg.txt
+++ b/tests/nonRegression/list_nonreg.txt
@@ -152,6 +152,7 @@
1522067 1522067
1532092 1532092
1542093 1542093
1552098
1552137 1562137
1562149 1572149
1572162 1582162
@@ -167,3 +168,13 @@
1672344 1682344
1682362 1692362
1692396 1702396
1712399
1722407
1732410
1742414
175
176
177
178
179
180