Skip to content

Commit dc5f5d5

Browse files
committed
quote.hrx: review follow-up (refs #1380)
1 parent eb787d9 commit dc5f5d5

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed
Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,82 @@
11
<===> unquoted/input.scss
22
a {
3-
a: quote(a);
3+
b: quote(c);
44
}
55

66
<===> unquoted/output.css
77
a {
8-
a: "a";
8+
b: "c";
99
}
1010

1111
<===>
1212
================================================================================
13-
<===> quoted-double/input.scss
13+
<===> quoted_double/input.scss
1414
a {
15-
a: quote("a");
15+
b: quote("c");
1616
}
1717

18-
<===> quoted-double/output.css
18+
<===> quoted_double/output.css
1919
a {
20-
a: "a";
20+
b: "c";
2121
}
2222

2323
<===>
2424
================================================================================
25-
<===> quoted-single/input.scss
25+
<===> quoted_single/input.scss
2626
a {
27-
a: quote('a');
27+
b: quote('c');
2828
}
2929

30-
<===> quoted-single/output.css
30+
<===> quoted_single/output.css
3131
a {
32-
a: "a";
32+
b: "c";
3333
}
3434

3535
<===>
3636
================================================================================
37-
<===> quote-mark-selection-single/input.scss
37+
<===> quote_unquoted_quote/single/input.scss
38+
// See sass/libsass#2873
3839
a {
39-
a: quote(unquote('"'));
40+
b: quote(unquote('"'));
4041
}
4142

42-
<===> quote-mark-selection-single/output.css
43+
<===> quote_unquoted_quote/single/output.css
4344
a {
44-
a: '"';
45+
b: '"';
4546
}
4647

4748
<===>
4849
================================================================================
49-
<===> quote-mark-selection-double/input.scss
50+
<===> quote_unquoted_quote/double/input.scss
51+
// See sass/libsass#2873
5052
a {
51-
a: quote(unquote('"') + unquote("'"));
53+
b: quote(unquote('"') + unquote("'"));
5254
}
5355

54-
<===> quote-mark-selection-double/output.css
56+
<===> quote_unquoted_quote/double/output.css
5557
a {
56-
a: "\"'";
58+
b: "\"'";
5759
}
5860

5961
<===>
6062
================================================================================
61-
<===> error/argument-type/input.scss
63+
<===> error/argument_type/input.scss
6264
a {
63-
a: quote((1, 2, 3));
65+
b: quote((1, 2, 3));
6466
}
6567

66-
<===> error/argument-type/error
68+
<===> error/argument_type/error
6769
Error: $string: 1, 2, 3 is not a string.
6870
,
69-
2 | a: quote((1, 2, 3));
71+
2 | b: quote((1, 2, 3));
7072
| ^^^^^^^^^^^^^^^^
7173
'
7274
input.scss 2:6 root stylesheet
7375

74-
<===> error/argument-type/error-libsass
76+
<===> error/argument_type/error-libsass
7577
Error: argument `$string` of `quote($string)` must be a string
7678
on line 2:6 of input.scss, in function `quote`
7779
from line 2:6 of input.scss
78-
>> a: quote((1, 2, 3));
80+
>> b: quote((1, 2, 3));
7981

8082
-----^

0 commit comments

Comments
 (0)