diff --git a/test/modules/toNearest.js b/test/modules/toNearest.js index b0a7252..7ee527c 100644 --- a/test/modules/toNearest.js +++ b/test/modules/toNearest.js @@ -112,6 +112,16 @@ T('toNearest', function () { t('83105511539', '83105511539.5', new Decimal('-1'), 3, 5); t('83105511540', '83105511539.5000000000000000000001', -1, 3, 5); + t('83105511540', '83105511539.4', 1, 30, 0); + t('83105511539', '83105511539.4', 1, 30, 1); + t('83105511540', '83105511539.4', 1, 30, 2); + t('83105511539', '83105511539.4', 1, 30, 3); + t('83105511539', '83105511539.4', 1, 30, 4); + t('83105511539', '83105511539.4', 1, 30, 5); + t('83105511539', '83105511539.4', 1, 30, 6); + t('83105511539', '83105511539.4', 1, 30, 7); + t('83105511539', '83105511539.4', 1, 30, 8); + t('83105511540', '83105511539.5', 1, 30, 0); t('83105511539', '83105511539.5', 1, 30, 1); t('83105511540', '83105511539.5', 1, 30, 2);