mirror of
https://github.com/vbatts/go-mtree.git
synced 2025-09-13 13:53:20 +00:00
Rather than parsing the value as a float and then truncating it, just parse it as an integer in the first place (this also adds some validation that we are parsing a reasonable-looking value). While we're at it, add some integration tests for this code to make sure this quite complicated special-case behaviour doesn't regress. Signed-off-by: Aleksa Sarai <cyphar@cyphar.com> |
||
---|---|---|
.. | ||
0001.sh | ||
0001a.sh | ||
0002.sh | ||
0003.sh | ||
0004.sh | ||
0005.sh | ||
0006.sh | ||
0007.sh | ||
0008.sh | ||
0009.sh | ||
0010.sh | ||
0011.sh | ||
0012.sh | ||
0012trunc.sh |