test: fix bankers rounding test
One more `null` needs to be passed for "not passing precision"
This commit is contained in:
parent
7b91df0db6
commit
f1ffc3fd39
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ context("Rounding behaviour", () => {
|
|||
let rounding_method = "Banker's Rounding";
|
||||
|
||||
expect(flt("0.5", 0, null, rounding_method)).eq(0);
|
||||
expect(flt("0.3", null, rounding_method)).eq(0.3);
|
||||
expect(flt("0.3", null, null, rounding_method)).eq(0.3);
|
||||
|
||||
expect(flt("1.5", 0, null, rounding_method)).eq(2);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue