summaryrefslogtreecommitdiffstats
path: root/scilab/modules/data_structures/tests/nonreg_tests/bug_1712.dia.ref
blob: 25cb661d08937f44c5b1c22d2902b6f0faa67673 (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
//<-- CLI SHELL MODE -->
// =============================================================================
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2005-2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr>
//
//  This file is distributed under the same license as the Scilab package.
// =============================================================================
// <-- Non-regression test for bug 1712 -->
//
// <-- Bugzilla URL -->
// http://bugzilla.scilab.org/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 !
// ...
//hm = hypermat([2 2 2],1:8);
//if execstr('hm>min(hm) & hm<max(hm)','errcatch')   <>0 then bugmes();quit;end
//if execstr('hm==min(hm) | hm==max(hm)','errcatch') <>0 then bugmes();quit;end