Monocle: stringToLong accepts negative zero and breaks the prism round-trip law

Fixed · low · API-contract bug

The string prism parses '-0' to 0 and reverseGet returns '0', so the round-trip law fails for '-0', '-00' and '-01'.

Found: ; reported: ; status since: . Reporter: Mike Murunov

Page for this report · Public report · Fix or proposed fix (see status)

Thanks for the bug report @haskiindahouse. Feel free to send a PR :)

Open in the showcase. Record generated .