From 6791a833a94a28a6b4f7179dd8a08f565cd6c4eb Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 18 Mar 2013 16:16:16 -0500 Subject: fix broken backtracking behavior don't even try recursing if the indentation isn't correct for it to potentially be a subtest. this was causing exponential behavior since it would try to parse a plan as a result, fail, then try to parse it as a subtest result, and try to treat it as the start of a plan-first tap stream when that shouldn't be possible at all because the indentation should indicate that it's not a subtest --- src/test/scala/com/iinteractive/test/SubtestsTest.scala | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/test/scala/com/iinteractive/test/SubtestsTest.scala (limited to 'src/test') diff --git a/src/test/scala/com/iinteractive/test/SubtestsTest.scala b/src/test/scala/com/iinteractive/test/SubtestsTest.scala new file mode 100644 index 0000000..1e569b7 --- /dev/null +++ b/src/test/scala/com/iinteractive/test/SubtestsTest.scala @@ -0,0 +1,14 @@ +package com.iinteractive.test + +import java.io.ByteArrayOutputStream + +import com.iinteractive.test.tap.Parser + +// ensure subtest parsing works properly +class SubtestsTest extends TestMore { + for (i <- 1 to 100) { + subtest ("subtest " + i) { + pass + } + } +} -- cgit v1.2.3-54-g00ecf