From e6193c9a1d307ad0e113e49292f719476710550c Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Tue, 20 Apr 2021 15:23:22 +0200 Subject: [PATCH] Fix OutOfMemryError --- test/lsystem/StressTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/lsystem/StressTest.java b/test/lsystem/StressTest.java index 1c86829..b2d4116 100644 --- a/test/lsystem/StressTest.java +++ b/test/lsystem/StressTest.java @@ -13,13 +13,13 @@ import static org.junit.Assert.assertNotNull; public class StressTest { /** - * require at least 1GB of free ram + * require at least 3GB of free ram */ @Test public void stressTest1() { long millis = System.currentTimeMillis(); GLCanvas joglFrame = new GLCanvas(); - Parser parser = new Parser("Y", Arrays.asList("Y=X+[[Y]-Y]-X[-XY]+Y", "X=XX"), 12); + Parser parser = new Parser("Y", Arrays.asList("Y=X+[[Y]-Y]-X[-XY]+Y", "X=XX"), 11); List> lSystemRules = parser.parseRules(); joglFrame.setLSystem(parser.getAxiom(), lSystemRules, parser.getNbIterations()); System.out.println(joglFrame.getLSystem());