test/sass/scss/rx_test.rb in haml-3.0.1 vs test/sass/scss/rx_test.rb in haml-3.0.2
- old
+ new
@@ -47,19 +47,20 @@
end
def test_underscores_in_identifiers
assert_match IDENT, "foo_bar"
assert_match IDENT, "_\xC3\xBFfoo"
+ assert_match IDENT, "__foo"
+ assert_match IDENT, "_1foo"
+ assert_match IDENT, "-_foo"
+ assert_match IDENT, "_-foo"
end
def test_invalid_identifiers
assert_no_match IDENT, ""
assert_no_match IDENT, "1foo"
assert_no_match IDENT, "-1foo"
assert_no_match IDENT, "--foo"
- assert_no_match IDENT, "_1foo"
- assert_no_match IDENT, "-_foo"
- assert_no_match IDENT, "_-foo"
assert_no_match IDENT, "foo bar"
assert_no_match IDENT, "foo~bar"
# http://www.w3.org/Style/CSS/Test/CSS2.1/current/xhtml1/escapes-008.xht
assert_no_match IDENT, "c\\06C ass"