程序包 org.hipparchus.util

类 OpenIntToDoubleHashMapTest

java.lang.Object
org.hipparchus.util.OpenIntToDoubleHashMapTest

public class OpenIntToDoubleHashMapTest extends Object
OpenIntToDoubleHashMap的测试用例。
  • 构造器详细资料

    • OpenIntToDoubleHashMapTest

      public OpenIntToDoubleHashMapTest()
  • 方法详细资料

    • setUp

      public void setUp() throws Exception
      抛出:
      Exception
    • testPutAndGetWith0ExpectedSize

      public void testPutAndGetWith0ExpectedSize()
    • testPutAndGetWithExpectedSize

      public void testPutAndGetWithExpectedSize()
    • testPutAndGet

      public void testPutAndGet()
    • testPutAbsentOnExisting

      public void testPutAbsentOnExisting()
    • testPutOnExisting

      public void testPutOnExisting()
    • testGetAbsent

      public void testGetAbsent()
    • testGetFromEmpty

      public void testGetFromEmpty()
    • testRemove

      public void testRemove()
    • testRemove2

      public void testRemove2()
    • testRemoveFromEmpty

      public void testRemoveFromEmpty()
    • testRemoveAbsent

      public void testRemoveAbsent()
    • testCopy

      public void testCopy()
    • testContainsKey

      public void testContainsKey()
    • testIterator

      public void testIterator()
    • testConcurrentModification

      public void testConcurrentModification()
    • testPutKeysWithCollisions

      public void testPutKeysWithCollisions()
      对findInsertionIndex中的一个错误进行回归测试,第二次探测循环中的哈希与第一次不一致,在正确的puts和removes序列后导致重复的键。
    • testPutKeysWithCollision2

      public void testPutKeysWithCollision2()
      类似于testPutKeysWithCollisions(),但以稍微不同的方式执行代码路径。