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

Issue converting double.MaxValue #6

Open
AleRoe opened this issue Aug 10, 2017 · 0 comments
Open

Issue converting double.MaxValue #6

AleRoe opened this issue Aug 10, 2017 · 0 comments

Comments

@AleRoe
Copy link

AleRoe commented Aug 10, 2017

Hi!

seems like SafeMapper has issues when converting edge cases (i.e. MaxValue for double)
The test bellow fails.

[TestMethod]
public void SafeMapTest()
{
double d = double.MaxValue;
string value = d.ToString("R");
var result = SafeMap.Convert<string, double>(value);
Assert.AreEqual(d, result);
}

Any ideas?

Thanks
Alexander

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