just-ai/jaicf-kotlin

BotTest: `ProcessResult.goesToState` ignores visited states, if there were `reactions.go`

nikvoloshin opened this issue · 0 comments

Let's assume the following scenario:

state("main") {
	state("first") {
		activators {
			regex("first")
        }

		action {
			reactions.go("../second")
		}
	}

	state("second") {
	
	}
}

And the following test case:

withCurrentContext("/main")
query("first") goesToState "/main/first" endsWithState "/main/second"

Expected behavior:
The test succeeds

Actual behavior:
The test fails because of goesToState