Skip to content

Commit c503f04

Browse files
committed
Add a regression test for sass/dart-sass#2523
1 parent 73acfbf commit c503f04

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

spec/values/calculation/round/one_argument.hrx

+25
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,31 @@ More info and automated migrator: https://sass-lang.com/d/slash-div
143143
'
144144
input.scss 2:6 root stylesheet
145145

146+
<===>
147+
================================================================================
148+
<===> calc_unsafe_in_binary_operator/input.scss
149+
// Regression test for sass/dart-sass#2523
150+
b {
151+
a: round(-(1) + 2);
152+
}
153+
154+
<===> calc_unsafe_in_binary_operator/output.css
155+
b {
156+
a: 1;
157+
}
158+
159+
<===> calc_unsafe_in_binary_operator/warning
160+
DEPRECATION WARNING [global-builtin]: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
161+
Use math.round instead.
162+
163+
More info and automated migrator: https://sass-lang.com/d/import
164+
165+
,
166+
3 | a: round(-(1) + 2);
167+
| ^^^^^^^^^^^^^^^
168+
'
169+
input.scss 3:6 root stylesheet
170+
146171
<===>
147172
================================================================================
148173
<===> case_insensitive/input.scss

0 commit comments

Comments
 (0)