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

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

[Octave-bug-tracker] [bug #32036] fntests errors on data.cc on MinGW


From: Tatsuro MATSUOKA
Subject: [Octave-bug-tracker] [bug #32036] fntests errors on data.cc on MinGW
Date: Mon, 03 Jan 2011 08:33:56 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10

URL:
  <http://savannah.gnu.org/bugs/?32036>

                 Summary: fntests errors on data.cc on MinGW
                 Project: GNU Octave
            Submitted by: tmacchant
            Submitted on: 2011年01月03日 08時33分56秒
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

The errors on in the fntests on data.cc have been reported and discussed by
Benjamin.

I could not find it from the ML archives.
In order not to forget this, I have reported here.

  ***** test
 [f, e] = log2 ([0,-1; 2,-4; Inf,-Inf]);
 assert (f, [0,-0.5; 0.5,-0.5; Inf,-Inf]);
 assert (e(1:2,:), [0,1;2,3])
!!!!! test failed
assert (f,[0, -0.5; 0.5, -0.5; Inf, -Inf]) expected
   0.00000  -0.50000
   0.50000  -0.50000
       Inf      -Inf
but got
   0.00000  -0.50000
   0.50000  -0.50000
       NaN       NaN
NaNs don't match
  ***** test
 [f, e] = log2 (complex (zeros (3, 2), [0,-1; 2,-4; Inf,-Inf]));
 assert (f, complex (zeros (3, 2), [0,-0.5; 0.5,-0.5; Inf,-Inf]));
 assert (e(1:2,:), [0,1; 2,3]);
!!!!! test failed
assert (f,complex (zeros (3, 2), [0, -0.5; 0.5, -0.5; Inf, -Inf])) expected
   0.00000 + 0.00000i   0.00000 - 0.50000i
   0.00000 + 0.50000i   0.00000 - 0.50000i
   0.00000 +     Infi   0.00000 -     Infi
but got
   0.00000 + 0.00000i   0.00000 - 0.50000i
   0.00000 + 0.50000i   0.00000 - 0.50000i
       NaN -     NaNi       NaN -     NaNi
NaNs don't match
  ***** test
 [v, i] = sort ([NaN, 1i, -1, Inf, 1, 1i]);
 assert (v, [1, 1i, 1i, -1, Inf, NaN])
 assert (i, [5, 2, 6, 3, 4, 1])
!!!!! test failed
assert (i,[5, 2, 6, 3, 4, 1]) expected
   5   2   6   3   4   1
but got
   5   6   2   3   4   1
values do not match
shared variables {
  m2 =

     1   2
     3   4

  flo = 0
  fhi = Inf
}








    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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