Skip to content

Commit

Permalink
Add a regression test for sass/dart-sass#2523 (#2047)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 authored Feb 25, 2025
1 parent 73acfbf commit ca1a942
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions spec/values/calculation/round/one_argument.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,31 @@ More info and automated migrator: https://sass-lang.com/d/slash-div
'
input.scss 2:6 root stylesheet

<===>
================================================================================
<===> calc_unsafe_in_binary_operator/input.scss
// Regression test for sass/dart-sass#2523
b {
a: round(-(1) + 2);
}

<===> calc_unsafe_in_binary_operator/output.css
b {
a: 1;
}

<===> calc_unsafe_in_binary_operator/warning
DEPRECATION WARNING [global-builtin]: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use math.round instead.

More info and automated migrator: https://sass-lang.com/d/import

,
3 | a: round(-(1) + 2);
| ^^^^^^^^^^^^^^^
'
input.scss 3:6 root stylesheet

<===>
================================================================================
<===> case_insensitive/input.scss
Expand Down

0 comments on commit ca1a942

Please sign in to comment.