Permalink
Browse files

Add failing test case for function scope bug

  • Loading branch information...
1 parent 6471ae6 commit 4a3656f668e34379531d7379ac7998a221bff890 @txus committed Jan 27, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 test/compiler_test.rb
View
@@ -90,6 +90,19 @@ def test_compile_function_call_twice_again
assert_equal 1, compile("'3'.length(); '3'.length()")
end
+ # TODO: Fix this
+ # def test_compile_function_scope
+ # assert_equal 3, compile(<<-CODE)
+ # hey = -> foo
+ # ho = -> bar
+ # foo + bar
+ # end
+ # ho(2)
+ # end
+ # hey(1)
+ # CODE
+ # end
+
def test_compile_multiple_expressions
result = compile("
if true != false

0 comments on commit 4a3656f

Please sign in to comment.