public class TestRubyHash extends TestRubyBase
runtime| Constructor and Description |
|---|
TestRubyHash(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
void |
testConstructors()
Test literal constructor {}, Hash::[], and Hash::new with and
without the optional default-value argument.
|
void |
testConversions()
Hash#to_s, Hash#to_a, Hash#to_hash
|
void |
testDefault()
Hash#default, Hash#default=
|
void |
testDeleting()
Hash#delete, Hash#delete_if, Hash#reject, Hash#reject!
|
void |
testGet() |
void |
testIterating()
Hash#each, Hash#each_pair, Hash#each_value, Hash#each_key
|
void |
testLookups()
Test Hash#[]= (store) and Hash#[] (retrieve).
|
void |
testRestructuring()
Hash#sort, Hash#invert
|
void |
testSizeRelated()
Hash#size, Hash#length, Hash#empty?
|
eval, tearDownprotected void setUp()
throws java.lang.Exception
setUp in class TestRubyBasejava.lang.Exceptionpublic void testConstructors()
throws java.lang.Exception
java.lang.Exceptionpublic void testLookups()
throws java.lang.Exception
java.lang.Exceptionpublic void testConversions()
throws java.lang.Exception
java.lang.Exceptionpublic void testSizeRelated()
throws java.lang.Exception
java.lang.Exceptionpublic void testIterating()
throws java.lang.Exception
java.lang.Exceptionpublic void testDeleting()
throws java.lang.Exception
java.lang.Exceptionpublic void testDefault()
throws java.lang.Exception
java.lang.Exceptionpublic void testRestructuring()
throws java.lang.Exception
java.lang.Exceptionpublic void testGet()
Copyright © 2002-2009 JRuby Team. All Rights Reserved.