octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #34234] two tests fail in speed.m (MinGW)


From: marco atzeri
Subject: [Octave-bug-tracker] [bug #34234] two tests fail in speed.m (MinGW)
Date: Wed, 05 Oct 2011 06:42:38 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1

Follow-up Comment #11, bug #34234 (project octave):

still a problem on the first test as T_f2 is not evaluated:

octave:17> test /pub/hg/octave/scripts/testfun/speed.m
  ***** test
 [order, n, T_f1, T_f2] = speed ("airy (x)", "x = rand (n, 10)", [100,
1000]);
 assert (isstruct (order));
 assert (size (order), [1, 1]);
 assert (fieldnames (order), {"p"; "a"});
 assert (isnumeric (n));
 assert (length (n) > 10);
 n_sz = size (n); 
 assert (isnumeric (T_f1));
 assert (size (T_f1), n_sz);
 assert (isnumeric (T_f2));
 assert (size (T_f2), n_sz);
!!!!! test failed
assert (size (T_f2),n_sz) expected
    1   12
but got
    1   15
values do not match

----------------------------------------------------
The second test is still failing, but it is not clear to me why:

octave:18> test /pub/hg/prova/fails/test_speed2.m
  ***** test
 [order, n, T_f1, T_f2] = speed ("sum (x)", "", [100, 1000], "v = 0; for i =
1:length (x), v += x(i); end");
 assert (isstruct (order));
 assert (size (order), [1, 1]);
 assert (fieldnames (order), {"p"; "a"});
 assert (isnumeric (n));
 assert (length (n) > 10);
 n_sz = size (n); 
 assert (size (n), [1, 15]);
 assert (isnumeric (T_f1));
 assert (size (T_f1), n_sz);
 assert (isnumeric (T_f2));
 assert (size (T_f2), n_sz);
!!!!! test failed
subscript indices must be either positive integers or logicals


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34234>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]