- added support for literals [closes #6]

Code beautifier
  - indented some files
This commit is contained in:
DBA
2010-08-24 08:17:42 +08:00
committed by Tobias Lütke
parent 4819eb1a92
commit c00a650492
7 changed files with 95 additions and 9 deletions
+4
View File
@@ -41,4 +41,8 @@ class RegexpTest < Test::Unit::TestCase
assert_equal ['var', '["method"]', '[0]'], 'var["method"][0]'.scan(VariableParser)
assert_equal ['var', '[method]', '[0]', 'method'], 'var[method][0].method'.scan(VariableParser)
end
def test_literal_shorthand_regexp
assert_match "{{{ {% if 'gnomeslab' contains 'liquid' %}yes{% endif %} }}}", LiteralShorthand
end
end # RegexpTest