dcSpark / cardano-multiplatform-lib

Rust implementation of Cardano
MIT License
98 stars 36 forks source link

Fixes for Int + BigInt + tests #242

Closed rooooooooob closed 1 year ago

rooooooooob commented 1 year ago

negative values weren't round-tripping correctly

Int with nint's min value would cause a panic when to_string()'d

BigInt with nint's min value would be written as bytes even when it should/could be serialized as nint

unit cases for all boundary values/edge cases for Int + BigInt