mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/test/psych/test_string.rb: remove unused variables.
* test/test/psych/test_yaml.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
131696f48f
commit
64d35eb621
3 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Feb 18 09:35:44 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* test/test/psych/test_string.rb: remove unused variables.
|
||||
* test/test/psych/test_yaml.rb: ditto.
|
||||
|
||||
Mon Feb 17 21:31:31 2014 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* test/ruby/test_gc.rb: ignore warning messages for running with -w
|
||||
|
|
|
@ -137,7 +137,7 @@ string: &70121654388580 !ruby/string
|
|||
ivar = "on rock and roll"
|
||||
food.instance_variable_set(:@we_built_this_city, ivar)
|
||||
|
||||
str = Psych.load Psych.dump food
|
||||
Psych.load Psych.dump food
|
||||
assert_equal ivar, food.instance_variable_get(:@we_built_this_city)
|
||||
end
|
||||
|
||||
|
|
|
@ -250,7 +250,6 @@ EOY
|
|||
|
||||
def test_spec_mapping_between_sequences
|
||||
# Complex key #1
|
||||
dj = Date.new( 2001, 7, 23 )
|
||||
assert_parse_only(
|
||||
{ [ 'Detroit Tigers', 'Chicago Cubs' ] => [ Date.new( 2001, 7, 23 ) ],
|
||||
[ 'New York Yankees', 'Atlanta Braves' ] => [ Date.new( 2001, 7, 2 ), Date.new( 2001, 8, 12 ), Date.new( 2001, 8, 14 ) ] }, <<EOY
|
||||
|
@ -606,7 +605,7 @@ EOY
|
|||
def test_spec_domain_prefix
|
||||
customer_proc = proc { |type, val|
|
||||
if Hash === val
|
||||
scheme, domain, type = type.split( ':', 3 )
|
||||
_, _, type = type.split( ':', 3 )
|
||||
val['type'] = "domain #{type}"
|
||||
val
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue