Skip to content

Commit

Permalink
fix test after the removal of #to_s
Browse files Browse the repository at this point in the history
  • Loading branch information
doudou committed Nov 12, 2015
1 parent bcf4e83 commit f764866
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 46 deletions.
15 changes: 0 additions & 15 deletions test/test_array.rb

This file was deleted.

12 changes: 0 additions & 12 deletions test/test_hash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@ def test_to_sym_keys
assert_equal({ :a => 10, :b => 20, :c => 30 }, { 'a' => 10, 'b' => 20, :c => 30 }.to_sym_keys)
end

def test_to_s
obj = { 1 => 2, 2 => 3 }
assert(obj.to_s =~ /^\{(.*)\}$/)
values = $1.split(", ")
assert_equal(["1 => 2", "2 => 3"].to_set, values.to_set)

obj[3] = obj
assert(obj.to_s =~ /^\{(.*)\}$/)
values = $1.split(", ")
assert_equal(["1 => 2", "2 => 3", "3 => ..."].to_set, values.to_set)
end

def test_map_key
base = { 1 => 'a', 2 => 'b' }
result = base.map_key { |k, v| k += 1 }
Expand Down
19 changes: 0 additions & 19 deletions test/test_set.rb

This file was deleted.

0 comments on commit f764866

Please sign in to comment.