Skip to content

Commit

Permalink
reduce randomCFG size
Browse files Browse the repository at this point in the history
  • Loading branch information
breandan committed Dec 17, 2024
1 parent bed2ff8 commit 8e0ac9e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class SeqValiantTest {
generateSequence {
measureTime {
val cfg = generateRandomCFG().parseCFG().freeze()
val results = cfg.enumSeq(List(30) { "_" }).filter { 20 < it.length }.take(10).toList()
val results = cfg.enumSeq(List(20) { "_" }).filter { 15 < it.length }.take(10).toList()
val corruptedResults = results.map { if (Random.nextBoolean()) it else it.deleteRandomSingleWord() }
preparseParseableLines(cfg, corruptedResults.joinToString("\n"))
}
Expand Down

0 comments on commit 8e0ac9e

Please sign in to comment.