From 8e0ac9e9699e3e057e66ec042e23353fa2fde72d Mon Sep 17 00:00:00 2001 From: breandan Date: Tue, 17 Dec 2024 08:31:29 -0500 Subject: [PATCH] reduce randomCFG size --- .../kotlin/ai/hypergraph/kaliningraph/parsing/SeqValiantTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commonTest/kotlin/ai/hypergraph/kaliningraph/parsing/SeqValiantTest.kt b/src/commonTest/kotlin/ai/hypergraph/kaliningraph/parsing/SeqValiantTest.kt index 36a681db..10b472a0 100644 --- a/src/commonTest/kotlin/ai/hypergraph/kaliningraph/parsing/SeqValiantTest.kt +++ b/src/commonTest/kotlin/ai/hypergraph/kaliningraph/parsing/SeqValiantTest.kt @@ -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")) }