mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
[Sass] [SCSS] Add a test for unicode variable names.
This commit is contained in:
parent
eb51a1020d
commit
34547bbdae
1 changed files with 12 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env ruby
|
||||
# -*- coding: utf-8 -*-
|
||||
require File.dirname(__FILE__) + '/test_helper'
|
||||
|
||||
class ScssTest < Test::Unit::TestCase
|
||||
|
@ -47,6 +48,17 @@ foo {
|
|||
SCSS
|
||||
end
|
||||
|
||||
def test_unicode_variables
|
||||
assert_equal <<CSS, render(<<SCSS)
|
||||
blat {
|
||||
a: foo; }
|
||||
CSS
|
||||
!vär = "foo";
|
||||
|
||||
blat {a = !vär}
|
||||
SCSS
|
||||
end
|
||||
|
||||
def test_guard_assign
|
||||
assert_equal <<CSS, render(<<SCSS)
|
||||
foo {
|
||||
|
|
Loading…
Add table
Reference in a new issue