Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Denormal boundary in parse #4

Closed
Ninds opened this issue Jun 30, 2020 · 0 comments
Closed

Denormal boundary in parse #4

Ninds opened this issue Jun 30, 2020 · 0 comments

Comments

@Ninds
Copy link
Owner

Ninds commented Jun 30, 2020

This is the same issue as as ulfjack/ryu#173.
The following unit test fails :

       [Fact]
        public void TestDenormalBoundaryInParse()
        {
            double result = 0;
            var testCase = "2.2250738585072013e-308";
            double refValue = 2.2250738585072013e-308;

            var st = RyuDotNet.Internal.Ryu.s2d_n(testCase, out result);

            Assert.Equal(Status.SUCCESS, st);
            Assert.Equal(refValue, result);
         }
 RyuDotNet.UnitTests.Test_s2d_n_small.TestDenormalBoundaryInParse
   Source: Test_s2d_n_small.cs line 68
   Duration: 18 ms

  Message: 
    Assert.Equal() Failure
    Expected: 2.2250738585072014E-308
    Actual:   0
  Stack Trace: 
    Test_s2d_n_small.TestDenormalBoundaryInParse() line 77
Ninds added a commit that referenced this issue Jun 30, 2020
Ninds added a commit that referenced this issue Jul 1, 2020
FIX of Denormal boundary in parse #4
@Ninds Ninds closed this as completed Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant