[Issue 13013] New: Failed unittests in std.json - does not parse doubles correctly

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jun 30 13:21:00 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13013

          Issue ID: 13013
           Summary: Failed unittests in std.json - does not parse doubles
                    correctly
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: Phobos
          Assignee: nobody at puremagic.com
          Reporter: markisaa at umich.edu

When compiling with -m64 on Windows, std.json fails to pass unittests regarding
parsing doubles from string json format into the JSONValue type.

Specifically:
core.exception.AssertError at jsontest.d(1027): 1.44354e-312 should be 0.23

This does not happen when I leave off -m64.
This does not happen when I use -m64 on OSX.

I compile with the line:
dmd -main -unittest -m64 json.d

I downloaded the latest version of std.json to see if this had already been
patched; it is still broken. The line number above refers to the version
currently on Github.


I will likely spend some time investigating this myself, as I must eventually
have a solution to this problem.

--


More information about the Digitalmars-d-bugs mailing list