src/test/java/eu/digitisation/distance/OcrOpWeightTest.java
@Test
    public void testIns() {
        System.out.println("ins");
        OcrOpWeight W = new OcrOpWeight(true); //ignore punct
        assertEquals(1, W.ins('a'));
        assertEquals(0, W.ins('@'));
        assertEquals(0, W.ins('+'));
        W = new OcrOpWeight();
        assertEquals(1, W.ins('a'));
        assertEquals(1, W.ins('@'));
        assertEquals(1, W.ins('+'));

    }
/**
     * Test of ins method, of class OcrWeights.
     */
Test of ins method, of class OcrWeights.
Test of ins method of class OcrWeights .
@Test
    public void testIns() {
        System.out.println("ins");
        OcrOpWeight W = new OcrOpWeight(true); 
        assertEquals(1, W.ins('a'));
        assertEquals(0, W.ins('@'));
        assertEquals(0, W.ins('+'));
        W = new OcrOpWeight();
        assertEquals(1, W.ins('a'));
        assertEquals(1, W.ins('@'));
        assertEquals(1, W.ins('+'));
    }
@ Test public void testIns ( ) { System . out . println ( "ins" ) ; OcrOpWeight W = new OcrOpWeight ( true ) ; assertEquals ( 1 , W . ins ( 'a' ) ) ; assertEquals ( 0 , W . ins ( '@' ) ) ; assertEquals ( 0 , W . ins ( '+' ) ) ; W = new OcrOpWeight ( ) ; assertEquals ( 1 , W . ins ( 'a' ) ) ; assertEquals ( 1 , W . ins ( '@' ) ) ; assertEquals ( 1 , W . ins ( '+' ) ) ; }
Test of ins method, of class OcrWeights.
Test of ins method of class OcrWeights .
//ignore punct