src/test/java/eu/digitisation/distance/EditDistanceTest.java
@Test
    public void testWordDistance() {
        System.out.println("wordDistance");
        String s1 = "p a t a t a";
        String s2 = "a p t a";
        int expResult = 3;
        int[] result = EditDistance.wordDistance(s1, s2, 10);
        assertEquals(expResult, result[2]);
    }
/**
     * Test of wordDistance method, of class EditDistance.
     */
Test of wordDistance method, of class EditDistance.
Test of wordDistance method of class EditDistance .
@Test
    public void testWordDistance() {
        System.out.println("wordDistance");
        String s1 = "p a t a t a";
        String s2 = "a p t a";
        int expResult = 3;
        int[] result = EditDistance.wordDistance(s1, s2, 10);
        assertEquals(expResult, result[2]);
    }
@ Test public void testWordDistance ( ) { System . out . println ( "wordDistance" ) ; String s1 = "p a t a t a" ; String s2 = "a p t a" ; int expResult = 3 ; int [ ] result = EditDistance . wordDistance ( s1 , s2 , 10 ) ; assertEquals ( expResult , result [ 2 ] ) ; }
Test of wordDistance method, of class EditDistance.
Test of wordDistance method of class EditDistance .