summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-16 03:57:52 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-16 03:57:52 +0000
commit35774d2166e5780e062475e28328356a8b42da43 (patch)
treef53bcc4954fd0674140b67ab3449efa1212df3c4 /lib
parentf25ecc6b877f6bbc0442ad5f02feb44f96217be4 (diff)
downloadruby-35774d2166e5780e062475e28328356a8b42da43.tar.gz
ruby-35774d2166e5780e062475e28328356a8b42da43.tar.xz
ruby-35774d2166e5780e062475e28328356a8b42da43.zip
add test for previous change.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/pp.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/pp.rb b/lib/pp.rb
index 5a5456b3c..e77f56350 100644
--- a/lib/pp.rb
+++ b/lib/pp.rb
@@ -549,6 +549,11 @@ if __FILE__ == $0
assert_equal(a.inspect + "\n", PP.pp(a, ''))
end
+ def test_anonymous
+ a = Class.new.new
+ assert_equal(a.inspect + "\n", PP.pp(a, ''))
+ end
+
def test_withinspect
a = []
a << HasInspect.new(a)