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

Version Path
bae-0.2.0 src/test/java/bae/FrequencyTableTest.java
bae-0.1.0 src/test/java/bae/FrequencyTableTest.java
bae-0.0.9 src/test/java/bae/FrequencyTableTest.java
bae-0.0.8-java src/test/java/bae/FrequencyTableTest.java
bae-0.0.7-java src/test/java/bae/FrequencyTableTest.java
bae-0.0.6-java src/test/java/bae/FrequencyTableTest.java
bae-0.0.5-java src/test/java/bae/FrequencyTableTest.java
bae-0.0.4-java src/test/java/bae/FrequencyTableTest.java
bae-0.0.3-java src/test/java/bae/FrequencyTableTest.java
bae-0.0.2-java src/test/java/bae/FrequencyTableTest.java
bae-0.0.1 src/test/java/bae/FrequencyTableTest.java