Skip to content

Commit

Permalink
Add test for issue #2609
Browse files Browse the repository at this point in the history
  • Loading branch information
HalidOdat committed May 8, 2023
1 parent df9a016 commit 86567b2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions boa_engine/src/builtins/number/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -481,3 +481,12 @@ fn issue_2717() {
TestAction::assert_eq("(0.23046743672210102).toString(36)", "0.8aoosla2phj"),
]);
}

// https://github.com/boa-dev/boa/issues/2609
#[test]
fn issue_2609() {
run_test_actions([
TestAction::assert_eq("(1.25).toFixed(1)", "1.3"),
TestAction::assert_eq("(1.35).toFixed(1)", "1.4"),
]);
}

0 comments on commit 86567b2

Please sign in to comment.