[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54385] NaN and Inf printed instead of nan and
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #54385] NaN and Inf printed instead of nan and inf |
Date: |
Thu, 26 Jul 2018 09:10:47 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
URL:
<http://savannah.gnu.org/bugs/?54385>
Summary: NaN and Inf printed instead of nan and inf
Project: GNU Octave
Submitted by: jwe
Submitted on: Thu 26 Jul 2018 01:10:45 PM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Solaris/SunOS
_______________________________________________________
Details:
Running the test suite on Solaris showed the following errors:
>>>>> processing index.tst
***** error <index \(nan,_\): subscripts> 1(NaN,1)
!!!!! error failed.
Expected <index \(nan,_\): subscripts>, but got <index (NaN,_): subscripts
must be either integers 1 to (2^31)-1 or logicals>
***** error <abc\(nan\): subscripts> abc(NA)
!!!!! error failed.
Expected <abc\(nan\): subscripts>, but got <abc(NaN): subscripts must be
either integers 1 to (2^31)-1 or logicals>
***** error <abc\(_,_,_,inf,_\): subscripts> abc(1,1,1,Inf,1)
## Test sparse matrices
!!!!! error failed.
Expected <abc\(_,_,_,inf,_\): subscripts>, but got <abc(_,_,_,Inf,_):
subscripts must be either integers 1 to (2^31)-1 or logicals>
The errors appear to be correct except that "Inf" and "NaN" are displayed and
the test is expecting "inf" and "nan".
Should we fix the tests, or fix Octave to always print Inf and NaN values a
particular way? The latter seems more difficult unless we can be sure that
all printing of Inf and NaN values goes through Octave's I/O system and none
are printed directly with a system library.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54385>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54385] NaN and Inf printed instead of nan and inf,
John W. Eaton <=