diff options
Diffstat (limited to 'morfologik-speller/src/test/java/morfologik/speller/HMatrixTest.java')
-rw-r--r-- | morfologik-speller/src/test/java/morfologik/speller/HMatrixTest.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/morfologik-speller/src/test/java/morfologik/speller/HMatrixTest.java b/morfologik-speller/src/test/java/morfologik/speller/HMatrixTest.java new file mode 100644 index 0000000..38aa76d --- /dev/null +++ b/morfologik-speller/src/test/java/morfologik/speller/HMatrixTest.java @@ -0,0 +1,21 @@ +package morfologik.speller;
+
+import static org.junit.Assert.*;
+
+import morfologik.speller.HMatrix;
+
+import org.junit.Test;
+
+public class HMatrixTest {
+
+ private static final int MAX_WORD_LENGTH = 120;
+
+ @Test
+ public void stressTestInit() {
+ for (int i = 0; i < 10; i++) { // test if we don't get beyond array limits etc.
+ HMatrix H = new HMatrix(i, MAX_WORD_LENGTH);
+ assertEquals(0, H.get(1, 1));
+ }
+ }
+
+}
|