Ensure pseudo variable is regarded as dynamic

This commit is contained in:
Takashi Kokubun 2015-11-21 08:21:33 +09:00
parent bf07a5ce58
commit c7b7509bbb
1 changed files with 5 additions and 0 deletions

View File

@ -33,6 +33,11 @@ describe Hamlit::StaticAnalyzer do
assert_static('"".gsub(/foo/, "bar")', false)
assert_static('1.times {}', false)
assert_static('[3, 1.2, [2i, "hello #{ nya } world"]]', false)
assert_static('self', false)
assert_static('__FILE__', false)
assert_static('__LINE__', false)
assert_static('__ENCODING__', false)
assert_static('__dir__', false)
end
specify 'invalid expression' do