Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

trailing whitespace wtf

[git-p4: depot-paths = "//src/ruby2ruby/dev/": change = 7157]
  • Loading branch information...
commit bfc3de7485e2e59c1d2f71374ed0ea4d6fff2446 1 parent 6471e30
Ryan Davis zenspider authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 test/test_ruby2ruby.rb
10 test/test_ruby2ruby.rb
View
@@ -313,19 +313,19 @@ def test_basic_ensure
out = "begin\n 1\nensure\n 2\nend"
util_compare inn, out
end
-
+
def test_nested_ensure
inn = s(:ensure, s(:lit, 1), s(:ensure, s(:lit, 2), s(:lit, 3)))
out = "begin\n 1\nensure\n begin\n 2\n ensure\n 3\n end\nend"
util_compare inn, out
end
-
+
def test_nested_rescue
inn = s(:ensure, s(:lit, 1), s(:rescue, s(:lit, 2), s(:resbody, s(:array), s(:lit, 3))))
out = "begin\n 1\nensure\n 2 rescue 3\nend"
util_compare inn, out
end
-
+
def test_nested_rescue_exception
inn = s(:ensure, s(:lit, 1), s(:rescue, s(:lit, 2), s(:resbody, s(:array, s(:const, :Exception)), s(:lit, 3))))
out = "begin\n 1\nensure\n begin\n 2\n rescue Exception\n 3\n end\nend"
@@ -341,14 +341,14 @@ def test_nested_rescue_exception2
def test_rescue_block
inn = s(:rescue,
s(:call, nil, :alpha, s(:arglist)),
- s(:resbody, s(:array),
+ s(:resbody, s(:array),
s(:block,
s(:call, nil, :beta, s(:arglist)),
s(:call, nil, :gamma, s(:arglist)))))
out = "begin\n alpha\nrescue\n beta\n gamma\nend"
util_compare inn, out
end
-
+
def util_compare sexp, expected_ruby, expected_eval = nil
assert_equal expected_ruby, @processor.process(sexp)
assert_equal expected_eval, eval(expected_ruby) if expected_eval
Please sign in to comment.
Something went wrong with that request. Please try again.