Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
Changed the robustness test parameters to something that is stressful…
Browse files Browse the repository at this point in the history
… but also completes in a reasonable amount of time.
  • Loading branch information
digitalstain committed Sep 21, 2010
1 parent b44d76c commit 1f9212a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/org/digitalstain/datrie/TestDoubleArrayTrie.java
Expand Up @@ -14,8 +14,8 @@ public class TestDoubleArrayTrie extends TestCase {
public void testRobustnessUnderStress() {

final int ALPHABET_SIZE = 120;
final int NUMBER_OF_STRINGS = 1000;
final int MAXIMUM_STRING_SIZE = 20;
final int NUMBER_OF_STRINGS = 100000;
final int MAXIMUM_STRING_SIZE = 100;

List<IntegerList> data = new ArrayList<IntegerList>(NUMBER_OF_STRINGS);
AbstractDoubleArrayTrie trie = new DoubleArrayTrieImpl(ALPHABET_SIZE);
Expand Down Expand Up @@ -47,8 +47,8 @@ public void testRobustnessUnderStress() {
}

// TODO
// Insert a NOT_FOUND random case here that is deterministic and dependent
// on the inserted strings.
// Insert a NOT_FOUND test here that is on the one hand random and
// on the other succeeds always regardless of the generated strings.
}

public void testMarginCases() {
Expand Down

0 comments on commit 1f9212a

Please sign in to comment.