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

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

[Octave-bug-tracker] [bug #52627] Failing BIST tests on Mac OS X


From: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #52627] Failing BIST tests on Mac OS X
Date: Fri, 8 Dec 2017 23:44:02 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0

Follow-up Comment #9, bug #52627 (project octave):

FWIW it does pass on Fedora/clang/libc++


octave:3> __octave_config_info__ ("CXXFLAGS")
ans = -stdlib=libc++ -O2
octave:4> __octave_config_info__ ("CXX")
ans = clang++ -std=gnu++11
octave:5> test ../test/complex.tst verbose
>>>>> /home/dima/src/octave/test/complex.tst
***** test
 x = [0 i 1+i 2 3i 3+4i];
 assert (sort (x, "descend"), fliplr (x));
 assert (sort (single (x), "descend"), fliplr (single (x)));
***** test
 x = [1, -1, i, -i];
 xs = [-i, 1, i, -1];
 assert (sort (x), xs);
 assert (sort (x, "descend"), fliplr (xs));
 assert (sort (single (x)), single (xs));
 assert (sort (single (x), "descend"), fliplr (single (xs)));
***** assert (issorted ([1, -1, i, -i]), false)
***** assert (issorted (single ([1, -1, i, -i])), false)
***** test
 assert (complex(-1,0) == complex(-1,-0), true);
 assert (complex(-1,0) > complex(-1,-0), false);
 assert (complex(-1,0) < complex(-1,-0), false);
***** test
 x = [complex(-1,0), complex(-1,-0), i, -i, 1];
 xs = sort (x);
 xf = single (x);
 xfs = sort (xf);
 assert (issorted (xs));
 assert (issorted (xfs));
 assert (double (xfs), xs);
***** test
 x = [complex(NaN,-1), complex(NaN,NaN), ...
      complex(-1,0), complex(-1,-0), i, -i, 1, ...
      complex(1,NaN)];
 xs = sort (x);
 xf = single (x);
 xfs = sort (xf);
 assert (issorted (xs));
 assert (issorted (xfs));
 assert (double (xfs), xs);
PASSES 7 out of 7 tests


Dmitri.
-- 


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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