summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPierre Marechal <pierre.marechal@scilab.org>2007-01-03 15:18:58 +0000
committerPierre Marechal <pierre.marechal@scilab.org>2007-01-03 15:18:58 +0000
commitfda4652b8a1900f9d0cd548089b6c4becd4bc227 (patch)
treef7b71c7c5e37368857f087078ae01af39e902a2f /tests
parent465d9743e0c8d59507f1d7ab9a56a5b7965e8856 (diff)
downloadscilab-fda4652b8a1900f9d0cd548089b6c4becd4bc227.zip
scilab-fda4652b8a1900f9d0cd548089b6c4becd4bc227.tar.gz
Add non-regression test for bug 2270
Diffstat (limited to 'tests')
-rw-r--r--tests/nonRegression/bug2270.sci19
-rw-r--r--tests/nonRegression/list_nonreg.txt1
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/nonRegression/bug2270.sci b/tests/nonRegression/bug2270.sci
new file mode 100644
index 0000000..9623e43
--- /dev/null
+++ b/tests/nonRegression/bug2270.sci
@@ -0,0 +1,19 @@
1// Non-regression test file for bug 2270
2// Copyright INRIA
3// Scilab Project - Pierre MARECHAL
4// Copyright INRIA 2007
5// Date : 3 janvier 2007
6
7mode(-1);
8clear;
9
10execstr('datenum(2006,12,32)','errcatch');
11error_str = lasterror();
12
13if stripblanks(error_str) <> "The third argument must be between 1 and 31" then
14 affich_result(%F,2270);
15else
16 affich_result(%T,2270);
17end
18
19clear
diff --git a/tests/nonRegression/list_nonreg.txt b/tests/nonRegression/list_nonreg.txt
index 3d15724..68d5c99 100644
--- a/tests/nonRegression/list_nonreg.txt
+++ b/tests/nonRegression/list_nonreg.txt
@@ -157,3 +157,4 @@
1572181 1572181
1582264 1582264
1592266 1592266
1602270