[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55539] "format long" breaks corefcn/pr-output
From: |
Andrew Janke |
Subject: |
[Octave-bug-tracker] [bug #55539] "format long" breaks corefcn/pr-output.cc-tst test |
Date: |
Mon, 21 Jan 2019 14:56:18 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 |
URL:
<https://savannah.gnu.org/bugs/?55539>
Summary: "format long" breaks corefcn/pr-output.cc-tst test
Project: GNU Octave
Submitted by: apjanke
Submitted on: Mon 21 Jan 2019 07:56:16 PM UTC
Category: Test Suite
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: 4.4.1
Operating System: Mac OS
_______________________________________________________
Details:
If I set "format long" before running the test suite, then test
libinterp/corefcn/pr-output.cc-tst fails.
>> runsometests('libinterp/corefcn/pr-output.cc-tst')
Testing
/usr/local/Cellar/octave-stable/stable/share/octave/5.0.1/etc/tests/libinterp/corefcn/pr-output.cc-tst
PASSES 16 out of 16 tests
>> format long
>> runsometests('libinterp/corefcn/pr-output.cc-tst')
Testing
/usr/local/Cellar/octave-stable/stable/share/octave/5.0.1/etc/tests/libinterp/corefcn/pr-output.cc-tst
***** test
str = evalc ("x = 1.1; display (x)");
assert (str, "x = 1.1000\n");
!!!!! test failed
ASSERT errors for: assert (str,"x = 1.1000\n")
Location | Observed | Expected | Reason
[] x = 1.100000000000000
x = 1.1000
Strings don't match
>> ver
----------------------------------------------------------------------
GNU Octave Version: 5.0.1 (hg id: ada14ef3067f with local changes)
The test suite should probably be immune to user format settings, either in
the tests themselves, or by temporarily setting the format settings back to
the default while running the test suite.
Affects 4.4.1 and stable.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55539>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #55539] "format long" breaks corefcn/pr-output.cc-tst test,
Andrew Janke <=