summaryrefslogtreecommitdiff
path: root/test/regress
diff options
context:
space:
mode:
authorMax Nikulin <manikulin@gmail.com>2024-08-07 18:12:07 +0700
committerJohn Wiegley <johnw@newartisans.com>2024-08-07 09:46:28 -1000
commit4cbd4ebbc071793c13e7b1baf33fb521a7e880ad (patch)
treea57163786648919e493d3ef8c64f98fba5b52768 /test/regress
parent093190e72eb7b7637085dc19b938014bfd0485cb (diff)
downloadfork-ledger-4cbd4ebbc071793c13e7b1baf33fb521a7e880ad.tar.gz
fork-ledger-4cbd4ebbc071793c13e7b1baf33fb521a7e880ad.tar.bz2
fork-ledger-4cbd4ebbc071793c13e7b1baf33fb521a7e880ad.zip
More unit tests for amount_t::roundto
- Add some tests from comments to pull request #2361. - Fix decimal separator in earlier added tests.
Diffstat (limited to 'test/regress')
-rw-r--r--test/regress/2329.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/regress/2329.test b/test/regress/2329.test
index 643ef0d1..5267403d 100644
--- a/test/regress/2329.test
+++ b/test/regress/2329.test
@@ -6,10 +6,10 @@ assert roundto(-1.1, 1) == -1.1
; positive places
assert roundto(1.13, 1) == 1.1
-assert roundto(1,17, 1) == 1.2
+assert roundto(1.17, 1) == 1.2
assert roundto(1.10, 1) == 1.1
assert roundto(-1.13, 1) == -1.1
-assert roundto(-1,17, 1) == -1.2
+assert roundto(-1.17, 1) == -1.2
assert roundto(-1.10, 1) == -1.1
; zero places