blob: 91ae4e743f7df809ef7efeee435fc3b6932da61a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// <-- Non-regression test for bug 1712 -->
//
// <-- Bugzilla URL -->
// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=1712
//
// <-- Short Description -->
// Logical binary operations &,| with hypermatrices fail, as shown in the
// following examples. (The unary operation ~ succeeds.)
//
// -->hm=hypermat([2 2 2],1:8)
//
// -->hm>min(hm) & hm<max(hm)
// !--error 4
// undefined variable : %l_h_l
//
// -->hm==min(hm) | hm==max(hm)
// !--error 4
// undefined variable : %l_g_l
//
// -->~(hm==min(hm))
// ans =
//
// (:,:,1)
//
// ! F T !
// ! T T !
// ...
// Copyright INRIA
// Scilab Project - Pierre MARECHAL
// Copyright INRIA 2005
// Date : 6 fevrier 2005
hm=hypermat([2 2 2],1:8);
test1 = execstr('hm>min(hm) & hm<max(hm)','errcatch');
test2 = execstr('hm==min(hm) | hm==max(hm)','errcatch');
if( (test1 == 0) & (test2 == 0) ) then
affich_result(%T,1712);
else
affich_result(%F,1712);
end
|