Sha256: 18f279f704e50c8b3fe141f06fe240e64bf2695d73e1815a5d705e5183abd417
Contents?: true
Size: 531 Bytes
Versions: 11
Compression:
Stored size: 531 Bytes
Contents
package bae; import bae.FrequencyTable; import org.junit.Test; import static org.junit.Assert.*; public class FrequencyTableTest { @Test public void canInsertIntoFrequencyTable() { FrequencyTable frequencyTable = new FrequencyTable(); frequencyTable.increaseFrequencyBy("a", "b", 100); assertEquals(100, frequencyTable.get("a", "b")); // Make sure we fail correctly assertEquals(0, frequencyTable.get("a", "z")); assertEquals(0, frequencyTable.get("z", "z")); } }
Version data entries
11 entries across 11 versions & 1 rubygems