test for - and _ in get-function
This commit is contained in:
parent
b4b2edc9a4
commit
469dafd07b
@ -104,3 +104,15 @@ error!(
|
|||||||
"a {color: get-function(lighten);}",
|
"a {color: get-function(lighten);}",
|
||||||
"Error: get-function(\"lighten\") isn't a valid CSS value."
|
"Error: get-function(\"lighten\") isn't a valid CSS value."
|
||||||
);
|
);
|
||||||
|
test!(
|
||||||
|
hyphen_underscore_normalized,
|
||||||
|
"@function _test() {
|
||||||
|
@return 'hello';
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: inspect(get-function('_test'));
|
||||||
|
color: inspect(get-function('-test'));
|
||||||
|
}",
|
||||||
|
"a {\n color: get-function(\"-test\");\n color: get-function(\"-test\");\n}\n"
|
||||||
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user