1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* bootstraptest/pending.rb: move/remove solved issues.

* bootstraptest/test_class.rb: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2008-06-08 18:13:09 +00:00
parent 2bafbe1465
commit 7e6c9db4e2
3 changed files with 19 additions and 123 deletions

View file

@ -1,3 +1,9 @@
Mon Jun 9 03:12:23 2008 Koichi Sasada <ko1@atdot.net>
* bootstraptest/pending.rb: move/remove solved issues.
* bootstraptest/test_class.rb: ditto.
Mon Jun 9 02:32:58 2008 Akinori MUSHA <knu@iDaemons.org>
* ext/zlib/zlib.c (rb_deflate_init_copy): Copy buffers as well.

View file

@ -1,25 +0,0 @@
assert_equal 'ok', %q{
1.times{
eval("break")
}
:ok
}, '[ruby-dev:32525]'
assert_equal "ok", %q{
module Foo
end
begin
def foo(&b)
Foo.module_eval &b
end
foo{
def bar
end
}
bar
rescue NoMethodError
:ok
end
}, '[ruby-core:14378]'

View file

@ -112,106 +112,21 @@ assert_equal 'String', %q( class A; ::C = "OK"; end; C.class )
assert_equal 'Class', %q( class C; end; C.dup.class )
assert_equal 'Module', %q( module M; end; M.dup.class )
__END__
def test_singletonclass
ae %q{
obj = ''
class << obj
def m
:OK
end
end
obj.m
}
ae %q{
obj = ''
Const = :NG
class << obj
Const = :OK
def m
Const
end
end
obj.m
}
ae %q{
obj = ''
class C
def m
:NG
end
end
class << obj
class C
def m
:OK
end
end
def m
C.new.m
end
end
obj.m
}
ae %q{ # [yarv-dev:818]
class A
end
class << A
C = "OK"
def m
class << Object
$a = C
end
end
end
A.m
$a
}
assert_equal "ok", %q{
module Foo
end
def test_initialize
class C
def initialize
@a = :C
end
def a
@a
end
begin
def foo(&b)
Foo.module_eval &b
end
foo{
def bar
end
C.new.a
end
def test_attr
class C
def set
@a = 1
end
def get
@a
end
end
c = C.new
c.set
c.get
end
def test_attr_accessor
class C
attr_accessor :a
attr_reader :b
attr_writer :c
def b_write
@b = 'huga'
end
def m a
'test_attr_accessor' + @b + @c
end
end
c = C.new
c.a = true
c.c = 'hoge'
c.b_write
c.m(c.b)
}
bar()
rescue NameError
:ok
end
}, '[ruby-core:14378]'