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, tearDown
protected void setUp() throws java.lang.Exception
setUp
in class TestRubyBase
java.lang.Exception
public void testConstructors() throws java.lang.Exception
java.lang.Exception
public void testLookups() throws java.lang.Exception
java.lang.Exception
public void testConversions() throws java.lang.Exception
java.lang.Exception
public void testSizeRelated() throws java.lang.Exception
java.lang.Exception
public void testIterating() throws java.lang.Exception
java.lang.Exception
public void testDeleting() throws java.lang.Exception
java.lang.Exception
public void testDefault() throws java.lang.Exception
java.lang.Exception
public void testRestructuring() throws java.lang.Exception
java.lang.Exception
public void testGet()
Copyright © 2002-2009 JRuby Team. All Rights Reserved.