Giter Site home page Giter Site logo

socolin.testutils's People

Contributors

christianrondeau avatar socolin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

socolin.testutils's Issues

JsonComparer failed to compare numbers that don't fit in an int32

Hi!

I'm having an issue with json string with large numbers. It seems to be an issue when converting to values to int32 for comparison.
Would be possible to add support for int64 values?

Error:
Value was either too large or too small for an Int32.

StackTrace:
at System.Convert.ThrowInt32OverflowException() at System.Convert.ToInt32(Int64 value) at System.Int64.System.IConvertible.ToInt32(IFormatProvider provider) at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) at Newtonsoft.Json.Linq.Extensions.Convert[T,U](T token) at Newtonsoft.Json.Linq.Extensions.Value[T,U](IEnumerable value) at Newtonsoft.Json.Linq.Extensions.Value[U](IEnumerable value) at Socolin.TestUtils.JsonComparer.Comparers.JsonValueComparer.Compare(JValue expected, JValue actual, String path, JsonComparisonOptions options)+MoveNext() at Socolin.TestUtils.JsonComparer.JsonComparer.Compare(JToken expected, JToken actual, String path, JsonComparisonOptions options)+MoveNext() at Socolin.TestUtils.JsonComparer.Comparers.JsonObjectComparer.Compare(JObject expected, JObject actual, IJsonComparer jsonComparer, String path, JsonComparisonOptions options)+MoveNext() at Socolin.TestUtils.JsonComparer.JsonComparer.Compare(JToken expected, JToken actual, String path, JsonComparisonOptions options)+MoveNext() at Socolin.TestUtils.JsonComparer.Comparers.JsonArrayComparer.Compare(JArray expected, JArray actual, IJsonComparer jsonComparer, String path, JsonComparisonOptions options)+MoveNext() at Socolin.TestUtils.JsonComparer.JsonComparer.Compare(JToken expected, JToken actual, String path, JsonComparisonOptions options)+MoveNext() at Socolin.TestUtils.JsonComparer.Comparers.JsonObjectComparer.Compare(JObject expected, JObject actual, IJsonComparer jsonComparer, String path, JsonComparisonOptions options)+MoveNext() at Socolin.TestUtils.JsonComparer.JsonComparer.Compare(JToken expected, JToken actual, String path, JsonComparisonOptions options)+MoveNext() at System.Collections.Generic.List..ctor(IEnumerable collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable source) at Socolin.TestUtils.JsonComparer.JsonComparer.Compare(JToken expected, JToken actual, JsonComparisonOptions options)

Test Json:
{ "intValue": 5362689768 }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.