summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJean-baptiste Silvy <jean-baptiste.silvy@scilab.org>2006-10-27 14:25:33 +0000
committerJean-baptiste Silvy <jean-baptiste.silvy@scilab.org>2006-10-27 14:25:33 +0000
commita7787ea493bec5012acc05b197e3086abd8d5e68 (patch)
tree47b1eb1baae8a246b3b0777f598d260098e80303 /tests
parentad0795697dc60744abf08fadb348564a090d8de1 (diff)
downloadscilab-a7787ea493bec5012acc05b197e3086abd8d5e68.zip
scilab-a7787ea493bec5012acc05b197e3086abd8d5e68.tar.gz
Add non regression test for bug 2045.
Diffstat (limited to 'tests')
-rw-r--r--tests/nonRegression/bug2045.sci67
-rw-r--r--tests/nonRegression/list_nonreg.txt1
2 files changed, 68 insertions, 0 deletions
diff --git a/tests/nonRegression/bug2045.sci b/tests/nonRegression/bug2045.sci
new file mode 100644
index 0000000..bea177b
--- /dev/null
+++ b/tests/nonRegression/bug2045.sci
@@ -0,0 +1,67 @@
1// Non-regression test file for bug 2045
2// Copyright INRIA
3// Scilab Project - Jean-Baptiste Silvy
4// Copyright INRIA 2006
5// Date : October 27 2006
6
7mode(-1);
8clear;
9
10// should not draw anything
11xpolys([],[],-1) ;
12
13e = gce() ;
14
15if ( e.type <> "Axes" ) then
16 affich_result(%F,2045) ;
17end
18
19
20xpoly([],[]) ;
21
22// should create an empty polyline
23e = gce() ;
24
25if ( e.type <> "Polyline" ) then
26 affich_result(%F,2045) ;
27end
28
29if ( size(e.data) <> [0,0] ) then
30 affich_result(%F,2045) ;
31end
32
33// check if scilab don't crash
34plot3d ;
35
36e.data = rand(100,2) ;
37
38e.data = [] ;
39
40xdel(winsid()) ;
41
42// check if nothing is broken
43xpolys(rand(12,12), rand(12,12) ) ;
44
45e = gce() ;
46
47if ( e.type <> "Compound" ) then
48 affich_result(%F,2045) ;
49end
50
51if ( size(e.children) <> 12 ) then
52 affich_result(%F,2045) ;
53end
54
55delete(gca()) ;
56
57xpoly( rand(1,12), rand(1,12) ) ;
58
59e = gce() ;
60
61if ( e.type <> "Polyline" ) then
62 affich_result(%F,2045) ;
63end
64
65affich_result(%T,2045) ;
66
67clear ;
diff --git a/tests/nonRegression/list_nonreg.txt b/tests/nonRegression/list_nonreg.txt
index 1bbc404..b9d5fa8 100644
--- a/tests/nonRegression/list_nonreg.txt
+++ b/tests/nonRegression/list_nonreg.txt
@@ -146,6 +146,7 @@
1462022 1462022
1472038 1472038
1482039 1482039
1492045
1492067 1502067
1502067 1512067
1512092 1522092