[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54622] test importdata fails in dev octave wi
From: |
Philip Nienhuis |
Subject: |
[Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows |
Date: |
Wed, 5 Sep 2018 15:48:55 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0 SeaMonkey/2.48 |
Follow-up Comment #1, bug #54622 (project octave):
Confirmed.
There are more enigmas when running __run_test_suite__ atleast in Windows.
E.g., with histcounts.m (see patch #8801), I get two FAILS for histcounts but
afterwards:
:
>> test histcounts
***** test
n = histcounts (rand (1, 42), "Normalization", "count");
assert (sum(n), 42);
!!!!! test failed
ASSERT errors for: assert (sum (n),42)
Location | Observed | Expected | Reason
() 41 42 Abs err 1 exceeds tol 0 by 1
>> test histcounts
PASSES 15 out of 15 tests
>> test histcounts
PASSES 15 out of 15 tests
Maybe there are some hidden variables / functions / whatever not fully cleared
from memory?
Surely there's something fishy with importdata itself. After testing it,
histcounts first FAILs, but a second try passes all tests:
>> clear -f
>> test histcounts
PASSES 15 out of 15 tests
>> test importdata
***** test
## Exceptional values (Inf, NaN, NA)
A = [3.1 Inf NA; -Inf NaN 128];
fn = tempname ();
fid = fopen (fn, "w");
fputs (fid, "3.1\tInf\tNA\n-Inf\tNaN\t128");
fclose (fid);
[a,d,h] = importdata (fn, '\t');
unlink (fn);
assert (a, A);
assert (d, "\t");
assert (h, 0);
!!!!! test failed
ASSERT errors for: assert (a,A)
Location | Observed | Expected | Reason
. O(1x1) E(2x3) Dimensions don't match
>> test histcounts
***** test
n = histcounts (rand (1, 42), "Normalization", "cumcount");
assert (n(end), 42);
!!!!! test failed
ASSERT errors for: assert (n (end),42)
Location | Observed | Expected | Reason
() 41 42 Abs err 1 exceeds tol 0 by 1
>> test histcounts
PASSES 15 out of 15 tests
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54622>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, John Donoghue, 2018/09/05
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows,
Philip Nienhuis <=
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, Philip Nienhuis, 2018/09/05
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, Dan Sebald, 2018/09/06
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, Dan Sebald, 2018/09/06
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, John Donoghue, 2018/09/06
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, John Donoghue, 2018/09/06
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, Rik, 2018/09/06
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, John Donoghue, 2018/09/06
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, John Donoghue, 2018/09/06
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, John Donoghue, 2018/09/06
- [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows, John Donoghue, 2018/09/06