src/test/java/eu/digitisation/document/TermFrequencyVectorTest.java
@Test
    public void testDistance() {
        System.out.println("distance");
        TermFrequencyVector tf1 = new TermFrequencyVector(s1);
        TermFrequencyVector tf2 = new TermFrequencyVector(s2);
        int expResult = EditDistance.wordDistance(s1, s2, 1000)[2];
        int result = tf1.distance(tf2);
        assertEquals(expResult, result);
    }
/**
     * Test of distance method, of class TermFrequencyVector.
     */
Test of distance method, of class TermFrequencyVector.
Test of distance method of class TermFrequencyVector .
@Test
    public void testDistance() {
        System.out.println("distance");
        TermFrequencyVector tf1 = new TermFrequencyVector(s1);
        TermFrequencyVector tf2 = new TermFrequencyVector(s2);
        int expResult = EditDistance.wordDistance(s1, s2, 1000)[2];
        int result = tf1.distance(tf2);
        assertEquals(expResult, result);
    }
@ Test public void testDistance ( ) { System . out . println ( "distance" ) ; TermFrequencyVector tf1 = new TermFrequencyVector ( s1 ) ; TermFrequencyVector tf2 = new TermFrequencyVector ( s2 ) ; int expResult = EditDistance . wordDistance ( s1 , s2 , 1000 ) [ 2 ] ; int result = tf1 . distance ( tf2 ) ; assertEquals ( expResult , result ) ; }
Test of distance method, of class TermFrequencyVector.
Test of distance method of class TermFrequencyVector .