From e883a559ca07c967d8501d238f2992ab759702e4 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Thu, 11 Feb 2010 02:41:24 -0500 Subject: [PATCH] uncomment test --- .../execution/test_expressions.coffee | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/test/fixtures/execution/test_expressions.coffee b/test/fixtures/execution/test_expressions.coffee index 7843a134..eee44179 100644 --- a/test/fixtures/execution/test_expressions.coffee +++ b/test/fixtures/execution/test_expressions.coffee @@ -1,9 +1,9 @@ # Ensure that we don't wrap Nodes that are "statement_only" in a closure. -# items: [1, 2, 3, "bacon", 4, 5] -# -# for item in items -# break if item is "bacon" +items: [1, 2, 3, "bacon", 4, 5] + +for item in items + break if item is "bacon" findit: (items) -> for item in items @@ -15,16 +15,16 @@ puts findit(items) is "bacon" # When when a closure wrapper is generated for expression conversion, make sure # that references to "this" within the wrapper are safely converted as well. -# obj: { -# num: 5 -# func: -> -# this.result: if false -# 10 -# else -# "a" -# "b" -# this.num -# } -# -# puts obj.num is obj.func() -# puts obj.num is obj.result \ No newline at end of file +obj: { + num: 5 + func: -> + this.result: if false + 10 + else + "a" + "b" + this.num +} + +puts obj.num is obj.func() +puts obj.num is obj.result \ No newline at end of file