src/test/java/eu/digitisation/distance/ArrayEditDistanceTest.java
@Test
    public void testLevenshteinDistance() {
        System.out.println("levenshteinDistance");
        Object[] first = {'p','a','t','a','t','a'};
        Object[] second = {'a','p','t','a'};
        int expResult = 3;
        int result = ArrayEditDistance.levenshtein(first, second);
        assertEquals(expResult, result);
    }
/**
     * Test of levenshtein method, of class ArrayEditDistance.
     */
Test of levenshtein method, of class ArrayEditDistance.
Test of levenshtein method of class ArrayEditDistance .
@Test
    public void testLevenshteinDistance() {
        System.out.println("levenshteinDistance");
        Object[] first = {'p','a','t','a','t','a'};
        Object[] second = {'a','p','t','a'};
        int expResult = 3;
        int result = ArrayEditDistance.levenshtein(first, second);
        assertEquals(expResult, result);
    }
@ Test public void testLevenshteinDistance ( ) { System . out . println ( "levenshteinDistance" ) ; Object [ ] first = { 'p' , 'a' , 't' , 'a' , 't' , 'a' } ; Object [ ] second = { 'a' , 'p' , 't' , 'a' } ; int expResult = 3 ; int result = ArrayEditDistance . levenshtein ( first , second ) ; assertEquals ( expResult , result ) ; }
Test of levenshtein method, of class ArrayEditDistance.
Test of levenshtein method of class ArrayEditDistance .