@@ -0,0 +1,1640 @@
+package com.bina.varsim.types.stats;%0A%0Aimport org.junit.Test;%0A%0Aimport java.util.EnumSet;%0Aimport java.util.Set;%0Aimport com.bina.varsim.types.stats.MapRatioRecordSum.EventTypesForStats;%0A%0Aimport static junit.framework.TestCase.assertTrue;%0A%0A/**%0A * Created by guoy28 on 1/18/17.%0A */%0Apublic class MapRatioRecordSumTest %7B%0A  @Test%0A  public void emptyRecordTest() %7B%0A    MapRatioRecordSum x = new MapRatioRecordSum();%0A    assertTrue(x.toString().equals(%22---------%5Cn%22 + %22---------%5Cn%22));%0A  %7D%0A  @Test%0A  public void oneTPTest() %7B%0A    Set%3CEventTypesForStats%3E features = EnumSet.noneOf(EventTypesForStats.class);%0A    MapRatioRecordSum x = new MapRatioRecordSum();%0A            features.add(EventTypesForStats.All);%0A    x.incStat(features, 1, StatsNamespace.TP);%0A    assertTrue(x.toString().equals(%220,Infinity,0.0000,1,0,0,NaN%5Cn%22 +%0A            %221,Infinity,0.0000,1,0,0,NaN%5Cn%22 +%0A            %22---------%5Cn%22 +%0A            %22All%5Cn%22 +%0A            %220,Infinity,0.0000,1,0,0,NaN%5Cn%22 +%0A            %221,Infinity,0.0000,1,0,0,NaN%5Cn%22 +%0A            %22%5Cn%22 +%0A            %22---------%5Cn%22));%0A    x.incStat(features, -1, StatsNamespace.TP);%0A    features.add(EventTypesForStats.Sequence);%0A    x.incStat(features, 1, StatsNamespace.TP);%0A    assertTrue(x.toString().equals(%220,Infinity,0.0000,2,0,0,NaN%5Cn%22 +%0A            %221,Infinity,0.0000,2,0,0,NaN%5Cn%22 +%0A            %22---------%5Cn%22 +%0A            %22All%5Cn%22 +%0A            %220,Infinity,0.0000,2,0,0,NaN%5Cn%22 +%0A            %221,Infinity,0.0000,2,0,0,NaN%5Cn%22 +%0A            %22%5Cn%22 +%0A            %22Sequence%5Cn%22 +%0A            %220,Infinity,0.0000,1,0,0,NaN%5Cn%22 +%0A            %221,Infinity,0.0000,1,0,0,NaN%5Cn%22 +%0A            %22%5Cn%22 +%0A            %22---------%5Cn%22));%0A  %7D%0A%7D%0A

add tests for mapping enum