package it.univr.di.labeledvalue; import it.unimi.dsi.fastutil.objects.AbstractObject2IntMap; import it.unimi.dsi.fastutil.objects.Object2IntMap; import it.unimi.dsi.fastutil.objects.ObjectArraySet; import it.unimi.dsi.fastutil.objects.ObjectSet; import it.univr.di.labeledvalue.ALabelAlphabet.ALetter; import org.apache.commons.math3.stat.descriptive.SummaryStatistics; import org.junit.Before; import org.junit.Test; import java.time.Duration; import java.time.Instant; import java.util.AbstractMap.SimpleEntry; import java.util.Map.Entry; import static org.junit.Assert.*; /** * @author posenato */ public class LabeledALabelIntTreeMapTest { private LabeledALabelIntTreeMap map, result; /** * */ ALabelAlphabet alpha; /** * Main. * * @param args an array of {@link java.lang.String} objects. */ static public void main(final String[] args) { // testEntrySet(); testConstructor(); } /** * @param map map * @param nTest number of test * @param entrySetStats statistics * @param keySetStats statistics */ @SuppressWarnings("SameParameterValue") private static void testEntrySetTime(LabeledALabelIntTreeMap map, int nTest, SummaryStatistics entrySetStats, SummaryStatistics keySetStats) { entrySetStats.clear(); keySetStats.clear(); Instant startInstant; // for (int i = 0; i < nTest; i++) { // startInstant = Instant.now(); // for (Entry entry : map.entrySet()) { // entry.getKey(); // for (it.unimi.dsi.fastutil.objects.Object2IntMap.Entry