|
@@ -18,12 +18,9 @@ public class HamletParserTest {
|
18
|
18
|
String leon = hamletParser.changeHamletToLeon("Hamlet", "Leon");
|
19
|
19
|
|
20
|
20
|
int expected = hamletParser.findWord(hamletText , "Hamlet");
|
21
|
|
- int actual = hamletParser.findWord(leon , "Hamlet");
|
|
21
|
+ int actual = hamletParser.findWord(leon , "Leon");
|
22
|
22
|
|
23
|
23
|
System.out.println(leon);
|
24
|
|
- // System.out.println(hamletText);
|
25
|
|
-
|
26
|
|
-
|
27
|
24
|
|
28
|
25
|
assertEquals(expected, actual);
|
29
|
26
|
}
|
|
@@ -36,9 +33,6 @@ public class HamletParserTest {
|
36
|
33
|
int actual = hamletParser.findWord(leon , "Tariq");
|
37
|
34
|
|
38
|
35
|
System.out.println(leon);
|
39
|
|
- // System.out.println(hamletText);
|
40
|
|
-
|
41
|
|
-
|
42
|
36
|
|
43
|
37
|
assertEquals(expected, actual);
|
44
|
38
|
}
|
|
@@ -47,7 +41,6 @@ public class HamletParserTest {
|
47
|
41
|
public void testFindHoratio() {
|
48
|
42
|
int expected = 158;
|
49
|
43
|
int actual = hamletParser.findWord(hamletText,"Horatio");
|
50
|
|
-
|
51
|
44
|
assertEquals(expected, actual);
|
52
|
45
|
}
|
53
|
46
|
|
|
@@ -55,7 +48,6 @@ public class HamletParserTest {
|
55
|
48
|
public void testFindHamlet() {
|
56
|
49
|
int expected = 472;
|
57
|
50
|
int actual = hamletParser.findWord(hamletText,"Hamlet");
|
58
|
|
-
|
59
|
51
|
assertEquals(expected, actual);
|
60
|
52
|
}
|
61
|
53
|
}
|