Skip to content

Commit

Permalink
add test for variables
Browse files Browse the repository at this point in the history
bug when perform expressions where first operand is another variable.
  • Loading branch information
goncaloe committed Mar 15, 2011
1 parent 833b4e1 commit 7b4e05f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/tests_variables.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

include "test_inc.php";

class IssuesTest extends ScssUnitTest {

public function test_variables(){
$source = <<<END
\$var1: #333333;
\$var2: \$var1 + #123123;
a {
color: \$var1;
background: \$var2;
}
END;
$expected = <<<END
a {
color: #333333;
background: #456456;
}
END;
$this->assertScss($source, $expected);
}

}


$unit = new IssuesTest();
$unit->run();

0 comments on commit 7b4e05f

Please sign in to comment.