Permalink
Browse files

reformatted and renamed a new test

[git-p4: depot-paths = "//src/ruby2ruby/dev/": change = 6665]
  • Loading branch information...
1 parent 2fdf3cd commit 45c4a3fa2ab958b99e8e0aaa6958ba4cac871a14 @zenspider zenspider committed Sep 22, 2011
Showing with 13 additions and 13 deletions.
  1. +13 −13 test/test_ruby2ruby.rb
View
@@ -111,31 +111,31 @@ def test_call_self_index_equals
def test_call_arglist_hash_first
inn = s(:call, nil, :method,
- s(:arglist,
- s(:hash, s(:lit, :a), s(:lit, 1)),
- s(:call, nil, :b, s(:arglist))))
+ s(:arglist,
+ s(:hash, s(:lit, :a), s(:lit, 1)),
+ s(:call, nil, :b, s(:arglist))))
out = "method({ :a => 1 }, b)"
util_compare inn, out
end
- def test_call_arglist_hash_last
+ def test_call_arglist_hash_first_last
inn = s(:call, nil, :method,
- s(:arglist,
- s(:call, nil, :b, s(:arglist)),
- s(:hash, s(:lit, :a), s(:lit, 1))))
- out = "method(b, :a => 1)"
+ s(:arglist,
+ s(:hash, s(:lit, :a), s(:lit, 1)),
+ s(:call, nil, :b, s(:arglist)),
+ s(:hash, s(:lit, :c), s(:lit, 1))))
+ out = "method({ :a => 1 }, b, :c => 1)"
util_compare inn, out
end
def test_call_arglist_hash_last
inn = s(:call, nil, :method,
- s(:arglist,
- s(:hash, s(:lit, :a), s(:lit, 1)),
- s(:call, nil, :b, s(:arglist)),
- s(:hash, s(:lit, :c), s(:lit, 1))))
- out = "method({ :a => 1 }, b, :c => 1)"
+ s(:arglist,
+ s(:call, nil, :b, s(:arglist)),
+ s(:hash, s(:lit, :a), s(:lit, 1))))
+ out = "method(b, :a => 1)"
util_compare inn, out
end

0 comments on commit 45c4a3f

Please sign in to comment.