Skip to content

Commit 484f27a

Browse files
committed
quote.hrx: use one-liners (follow up to #1380)
1 parent dc5f5d5 commit 484f27a

File tree

1 file changed

+14
-25
lines changed

1 file changed

+14
-25
lines changed

spec/string_functions/quote.hrx

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<===> unquoted/input.scss
2-
a {
3-
b: quote(c);
4-
}
2+
a {b: quote(c)}
53

64
<===> unquoted/output.css
75
a {
@@ -11,9 +9,7 @@ a {
119
<===>
1210
================================================================================
1311
<===> quoted_double/input.scss
14-
a {
15-
b: quote("c");
16-
}
12+
a {b: quote("c")}
1713

1814
<===> quoted_double/output.css
1915
a {
@@ -23,9 +19,7 @@ a {
2319
<===>
2420
================================================================================
2521
<===> quoted_single/input.scss
26-
a {
27-
b: quote('c');
28-
}
22+
a {b: quote('c')}
2923

3024
<===> quoted_single/output.css
3125
a {
@@ -36,9 +30,7 @@ a {
3630
================================================================================
3731
<===> quote_unquoted_quote/single/input.scss
3832
// See sass/libsass#2873
39-
a {
40-
b: quote(unquote('"'));
41-
}
33+
a {b: quote(unquote('"'))}
4234

4335
<===> quote_unquoted_quote/single/output.css
4436
a {
@@ -49,9 +41,7 @@ a {
4941
================================================================================
5042
<===> quote_unquoted_quote/double/input.scss
5143
// See sass/libsass#2873
52-
a {
53-
b: quote(unquote('"') + unquote("'"));
54-
}
44+
a {b: quote(unquote('"') + unquote("'"))}
5545

5646
<===> quote_unquoted_quote/double/output.css
5747
a {
@@ -61,22 +51,21 @@ a {
6151
<===>
6252
================================================================================
6353
<===> error/argument_type/input.scss
64-
a {
65-
b: quote((1, 2, 3));
66-
}
54+
a {b: quote((1, 2, 3))}
6755

6856
<===> error/argument_type/error
6957
Error: $string: 1, 2, 3 is not a string.
7058
,
71-
2 | b: quote((1, 2, 3));
72-
| ^^^^^^^^^^^^^^^^
59+
1 | a {b: quote((1, 2, 3))}
60+
| ^^^^^^^^^^^^^^^^
7361
'
74-
input.scss 2:6 root stylesheet
62+
input.scss 1:7 root stylesheet
7563

7664
<===> error/argument_type/error-libsass
7765
Error: argument `$string` of `quote($string)` must be a string
78-
on line 2:6 of input.scss, in function `quote`
79-
from line 2:6 of input.scss
80-
>> b: quote((1, 2, 3));
66+
on line 1:7 of input.scss, in function `quote`
67+
from line 1:7 of input.scss
68+
>> a {b: quote((1, 2, 3))}
69+
70+
------^
8171

82-
-----^

0 commit comments

Comments
 (0)