blob: 85c06d3b33b53467e73fc6c4b4ccb52314f06871 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2012, 2017 NumberFour AG and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* NumberFour AG - initial API and Implementation (Alex Panchenko)
*******************************************************************************/
package org.eclipse.dltk.core.tests.utils;
import static org.junit.Assert.assertEquals;
import org.eclipse.dltk.utils.IntList;
import org.junit.Test;
public class IntListTests {
@Test
public void testRemoveAt() {
IntList list = new IntList();
list.add(100);
list.add(200);
list.add(300);
assertEquals(3, list.size());
list.removeAt(1);
assertEquals(2, list.size());
assertEquals(100, list.get(0));
assertEquals(300, list.get(1));
}
}