public class TestRubyArray extends TestRubyBase
runtime
Constructor and Description |
---|
TestRubyArray(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
setUp() |
void |
testConstructors()
Test literal constructor [], Array[], Array::[], and Array::new with all forms of parameters.
|
void |
testConversions()
Array#to_s, Array#to_a
|
void |
testIterating()
Array#each
|
void |
testLookups()
Test Array#[]= (store) and Array#[] (retrieve).
|
void |
testSetsLeftoverValuesToNullInDelete() |
void |
testSetsLeftoverValuesToNullInDeleteAt() |
void |
testSetsLeftoverValuesToNullWhenRejectingElements() |
void |
testSetsValuesToNullOnClearWhenNotShared() |
void |
testSizeRelated()
Array#size, Array#length, Array#empty?
|
void |
testSubListContainsCorrectSubset() |
void |
testToArray()
This tests toArray-functionality
|
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 testToArray() throws java.lang.Exception
java.lang.Exception
public void testSetsValuesToNullOnClearWhenNotShared() throws java.lang.Exception
java.lang.Exception
public void testSetsLeftoverValuesToNullWhenRejectingElements() throws java.lang.Exception
java.lang.Exception
public void testSetsLeftoverValuesToNullInDeleteAt() throws java.lang.Exception
java.lang.Exception
public void testSetsLeftoverValuesToNullInDelete() throws java.lang.Exception
java.lang.Exception
public void testSubListContainsCorrectSubset()
Copyright © 2002-2009 JRuby Team. All Rights Reserved.