2012-09-04 22:56:05 +00:00
|
|
|
/*
|
|
|
|
* Licensed Materials - Property of IBM
|
|
|
|
* 5724-D15
|
|
|
|
* (C) Copyright IBM Corporation 2008-2009. All Rights Reserved.
|
|
|
|
* Note to U.S. Government Users Restricted Rights:
|
|
|
|
* Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
|
|
|
|
*/
|
|
|
|
package com.ibm.wala.core.tests.collections;
|
|
|
|
|
|
|
|
import org.junit.Test;
|
|
|
|
|
|
|
|
import com.ibm.wala.core.tests.util.WalaTestCase;
|
|
|
|
import com.ibm.wala.util.intset.SemiSparseMutableIntSet;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Tests {@link SemiSparseMutableIntSet} class.
|
|
|
|
*
|
|
|
|
* @author egeay
|
|
|
|
*/
|
|
|
|
public final class SemiSparseMutableIntSetTest extends WalaTestCase {
|
|
|
|
|
|
|
|
public static void main(final String[] args) {
|
|
|
|
justThisTest(SemiSparseMutableIntSetTest.class);
|
|
|
|
}
|
|
|
|
|
|
|
|
// --- Test cases
|
|
|
|
|
|
|
|
@Test public void testCase1() {
|
|
|
|
final SemiSparseMutableIntSet ssmIntSet = new SemiSparseMutableIntSet();
|
|
|
|
ssmIntSet.add(1);
|
|
|
|
final SemiSparseMutableIntSet ssmIntSet2 = SemiSparseMutableIntSet.diff(ssmIntSet, ssmIntSet);
|
|
|
|
ssmIntSet2.max();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|