summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-08 18:13:09 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-08 18:13:09 +0000
commit7e6c9db4e22fd949e8a19ac1711f345529e9ebaa (patch)
tree79d5c814c343676ed694fc5140755227b4b7658c /bootstraptest
parent2bafbe1465d15aea09a18518d7d77282e74c40cf (diff)
* 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
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/pending.rb25
-rw-r--r--bootstraptest/test_class.rb111
2 files changed, 13 insertions, 123 deletions
diff --git a/bootstraptest/pending.rb b/bootstraptest/pending.rb
index 9629cea..e69de29 100644
--- a/bootstraptest/pending.rb
+++ b/bootstraptest/pending.rb
@@ -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]'
-
diff --git a/bootstraptest/test_class.rb b/bootstraptest/test_class.rb
index 93bb51d..1c49b83 100644
--- a/bootstraptest/test_class.rb
+++ b/bootstraptest/test_class.rb
@@ -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]'