Skip to content

Commit 60d518c

Browse files
committed
Add test for issue #2609
1 parent bc8abde commit 60d518c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

boa_engine/src/builtins/number/tests.rs

+9
Original file line numberDiff line numberDiff line change
@@ -479,3 +479,12 @@ fn issue_2717() {
479479
TestAction::assert_eq("(0.23046743672210102).toString(36)", "0.8aoosla2phj"),
480480
]);
481481
}
482+
483+
// https://github.com/boa-dev/boa/issues/2609
484+
#[test]
485+
fn issue_2609() {
486+
run_test_actions([
487+
TestAction::assert_eq("(1.25).toFixed(1)", "1.3"),
488+
TestAction::assert_eq("(1.35).toFixed(1)", "1.4"),
489+
]);
490+
}

0 commit comments

Comments
 (0)