summaryrefslogtreecommitdiffstats
path: root/scilab/modules/data_structures/tests/nonreg_tests/bug_1712.dia.ref
blob: cbfe66d948ec230dbdc11e15e0f617e59c201c93 (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
// <-- 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 !
// ...
// Copyright INRIA
// Scilab Project - Pierre MARECHAL
// Copyright INRIA 2005
// Date : 6 fevrier 2005
//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