octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #40607] mxe-octave: 3.7.7+ test dec2base fails


From: John Donoghue
Subject: [Octave-bug-tracker] [bug #40607] mxe-octave: 3.7.7+ test dec2base fails
Date: Sun, 17 Nov 2013 02:39:37 +0000
User-agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)

URL:
  <http://savannah.gnu.org/bugs/?40607>

                 Summary: mxe-octave: 3.7.7+ test dec2base fails
                 Project: GNU Octave
            Submitted by: lostbard
            Submitted on: Sun 17 Nov 2013 02:39:37 AM GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: John D
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

On my fedora 19 building mxe-octave with current octave-dev 3.3.7+, (hg id
9799a996b2c1) installing on a Windows 7 machine and running _run_test_suite,
the test for dec2base fails.

Run separately:

>> test dec2base
  ***** assert (dec2base (uint64 (2)^63-1, 16), "7FFFFFFFFFFFFFFF")
!!!!! test failed
ASSERT errors for:  assert (dec2base (uint64 (2) ^ 63 - 1,
16),"7FFFFFFFFFFFFFFF")
 Location  |  Observed  |  Expected  |  Reason
     []      8000000000000000   7FFFFFFFFFFFFFFF     Strings don't match


Looking at (uint64 (2)^63-1:

>> uint64(2)^63
ans = 9223372036854775808
>> uint64(2)^63-1
ans = 9223372036854775808

This is consistent with powers down to 54.

>> uint64(2)^54
ans = 18014398509481984
>> uint64(2)^54-1
ans = 18014398509481984
>>

With Powers less than that, the math works:

>> uint64(2)^53
ans = 9007199254740992
>> uint64(2)^53-1
ans = 9007199254740991


And this works:

>> uint64(2)^63
ans = 9223372036854775808
>> uint64(2)^63-uint64(1)
ans = 9223372036854775807
>>






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40607>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]