Skip to content

Unit test in keyHash.m fails on big endian system #43

@rlaboiss

Description

@rlaboiss

This has been reported in bug #1133123, filed against the Debian's octave-datatype package. At least one of the unit tests in keyHash.m fails on big endian systems. For instance, on a s390x system:

octave:2> test keyHash
***** test
 A = uint64(128);
 E = uint64(8038837787959150693);
 key = keyHash (A);
 assert (isequal(key, E), sprintf("k: %lx e: %lx d: %lx", key, E, key - E));
 assert (key, E);
!!!!! test failed
k: 39c37805f8f12165 e: 6f8fb060664ac865 d: 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions