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 4, 2023
1 parent fc94c42 commit aeb03e3
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 @@ -484,3 +484,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 aeb03e3

Please sign in to comment.