1
- <===> options.yml
2
- ---
3
- :ignore_for:
4
- - libsass
5
-
6
- <===>
7
- ================================================================================
8
1
<===> integer/input.scss
9
- @use "sass:math";
10
- a {b: math.round(1)}
2
+ a {b: round(1)}
11
3
12
4
<===> integer/output.css
13
5
a {
17
9
<===>
18
10
================================================================================
19
11
<===> up/high/input.scss
20
- @use "sass:math";
21
- a {b: math.round(2.9)}
12
+ a {b: round(2.9)}
22
13
23
14
<===> up/high/output.css
24
15
a {
28
19
<===>
29
20
================================================================================
30
21
<===> up/point_five/input.scss
31
- @use "sass:math";
32
- a {b: math.round(16.5)}
22
+ a {b: round(16.5)}
33
23
34
24
<===> up/point_five/output.css
35
25
a {
39
29
<===>
40
30
================================================================================
41
31
<===> up/negative/input.scss
42
- @use "sass:math";
43
- a {b: math.round(-5.4)}
32
+ a {b: round(-5.4)}
44
33
45
34
<===> up/negative/output.css
46
35
a {
50
39
<===>
51
40
================================================================================
52
41
<===> up/to_zero/input.scss
53
- @use "sass:math";
54
- a {b: math.round(-0.2)}
42
+ a {b: round(-0.2)}
55
43
56
44
<===> up/to_zero/output.css
57
45
a {
61
49
<===>
62
50
================================================================================
63
51
<===> down/low/input.scss
64
- @use "sass:math";
65
- a {b: math.round(2.2)}
52
+ a {b: round(2.2)}
66
53
67
54
<===> down/low/output.css
68
55
a {
72
59
<===>
73
60
================================================================================
74
61
<===> down/negative/input.scss
75
- @use "sass:math";
76
- a {b: math.round(-5.6)}
62
+ a {b: round(-5.6)}
77
63
78
64
<===> down/negative/output.css
79
65
a {
83
69
<===>
84
70
================================================================================
85
71
<===> down/to_zero/input.scss
86
- @use "sass:math";
87
- a {b: math.round(0.2)}
72
+ a {b: round(0.2)}
88
73
89
74
<===> down/to_zero/output.css
90
75
a {
100
85
<===> down/within_precision/input.scss
101
86
// This is the largest number that's representable as a float and outside the
102
87
// precision range to be considered equal to 1.5.
103
- @use "sass:math";
104
- a {b: math.round(1.4999999999949998)}
88
+ a {b: round(1.4999999999949998)}
105
89
106
90
<===> down/within_precision/output.css
107
91
a {
115
99
- sass/libsass#2887
116
100
117
101
<===> preserves_units/input.scss
118
- @use "sass:math";
119
- a {b: math.round(7px / 4em) * 1em}
102
+ a {b: round(7px / 4em) * 1em}
120
103
121
104
<===> preserves_units/output.css
122
105
a {
@@ -131,16 +114,15 @@ Recommendation: math.div(7px, 4em)
131
114
More info and automated migrator: https://sass-lang.com/d/slash-div
132
115
133
116
,
134
- 2 | a {b: math. round(7px / 4em) * 1em}
135
- | ^^^^^^^^^
117
+ 1 | a {b: round(7px / 4em) * 1em}
118
+ | ^^^^^^^^^
136
119
'
137
- input.scss 2:18 root stylesheet
120
+ input.scss 1:13 root stylesheet
138
121
139
122
<===>
140
123
================================================================================
141
124
<===> named/input.scss
142
- @use "sass:math";
143
- a {b: math.round($number: 1.6)}
125
+ a {b: round($number: 1.6)}
144
126
145
127
<===> named/output.css
146
128
a {
@@ -150,16 +132,15 @@ a {
150
132
<===>
151
133
================================================================================
152
134
<===> error/type/input.scss
153
- @use "sass:math";
154
- a {b: math.round(c)}
135
+ a {b: round(c)}
155
136
156
137
<===> error/type/error
157
138
Error: $number: c is not a number.
158
139
,
159
- 2 | a {b: math. round(c)}
160
- | ^^^^^^^^^^^^^
140
+ 1 | a {b: round(c)}
141
+ | ^^^^^^^^
161
142
'
162
- input.scss 2 :7 root stylesheet
143
+ input.scss 1 :7 root stylesheet
163
144
164
145
<===> error/type/error-libsass
165
146
Error: argument `$number` of `round($number)` must be a number
@@ -172,20 +153,19 @@ Error: argument `$number` of `round($number)` must be a number
172
153
<===>
173
154
================================================================================
174
155
<===> error/too_few_args/input.scss
175
- @use "sass:math";
176
- a {b: math.round()}
156
+ a {b: round()}
177
157
178
158
<===> error/too_few_args/error
179
159
Error: Missing argument $number.
180
160
,--> input.scss
181
- 2 | a {b: math. round()}
182
- | ^^^^^^^^^^^^ invocation
161
+ 1 | a {b: round()}
162
+ | ^^^^^^^ invocation
183
163
'
184
164
,--> sass:math
185
165
1 | @function round($number) {
186
166
| ============== declaration
187
167
'
188
- input.scss 2 :7 root stylesheet
168
+ input.scss 1 :7 root stylesheet
189
169
190
170
<===> error/too_few_args/error-libsass
191
171
Error: Function round is missing argument $number.
@@ -197,21 +177,20 @@ Error: Function round is missing argument $number.
197
177
<===>
198
178
================================================================================
199
179
<===> error/too_many_args/input.scss
200
- @use "sass:math";
201
- a {b: math.round(1, 2)}
180
+ a {b: round(1, 2)}
202
181
203
182
204
183
<===> error/too_many_args/error
205
184
Error: Only 1 argument allowed, but 2 were passed.
206
185
,--> input.scss
207
- 2 | a {b: math. round(1, 2)}
208
- | ^^^^^^^^^^^^^^^^ invocation
186
+ 1 | a {b: round(1, 2)}
187
+ | ^^^^^^^^^^^ invocation
209
188
'
210
189
,--> sass:math
211
190
1 | @function round($number) {
212
191
| ============== declaration
213
192
'
214
- input.scss 2 :7 root stylesheet
193
+ input.scss 1 :7 root stylesheet
215
194
216
195
<===> error/too_many_args/error-libsass
217
196
Error: wrong number of arguments (2 for 1) for `round'
0 commit comments