Skip to content

Unit test for grpstats fails on i368 #403

@rlaboiss

Description

@rlaboiss

One of the unit tests for grpstats fails on an i368 system, producing this error message:

octave:5> test grpstats
***** test
 ## large sample predci
 x = (1:50)';
 g = [ones(25, 1); 2 * ones(25, 1)];
 ci = grpstats (x, g, 'predci');
 expected = [-2.49070107176829 28.4907010717683; 22.5092989282317 ...
             53.4907010717683];
 assert (ci, expected, 1e-14);
!!!!! test failed
ASSERT errors for:  assert (ci,expected,1e-14)

  Location  |  Observed  |  Expected  |  Reason
   (2,1)       22.5093      22.5093      Abs err 1.4211e-14 exceeds tol 1e-14 by 4e-15
   (1,2)       28.4907      28.4907      Abs err 1.4211e-14 exceeds tol 1e-14 by 4e-15
   (2,2)       53.4907      53.4907      Abs err 1.4211e-14 exceeds tol 1e-14 by 4e-15

It works on all other architectures supported by Debian.

If it would help with the diagnosis, here is a more detailed breakdown of the above issue:

octave:4> x = (1:50)';
octave:5> g = [ones(25, 1); 2 * ones(25, 1)];
octave:6> grpstats (x, g, 'predci') - [-2.49070107176829 28.4907010717683; 22.5092989282317 53.4907010717683]
ans =

   4.884981308350689e-15  -1.421085471520200e-14
   1.421085471520200e-14  -1.421085471520200e-14

For comparison, the following was obtained on an amd64 system:

octave:4> x = (1:50)';
octave:5> g = [ones(25, 1); 2 * ones(25, 1)];
octave:6> grpstats (x, g, 'predci') - [-2.49070107176829 28.4907010717683; 22.5092989282317 53.4907010717683]
ans =

  -3.9968e-15  -7.1054e-15
   7.1054e-15  -7.1054e-15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions