From fbdd1022e8305cfb13f38e73f636d37f5f7f3e59 Mon Sep 17 00:00:00 2001 From: Colin Holzman Date: Fri, 26 Mar 2021 07:36:23 -0400 Subject: [PATCH] Added cases to TransitionTest. Currently default transition behavior (-> (Target.Kind.EXTERNAL)) is not actually external. It's more like a local transition that changes to external if the target is not a descendant of the source. I think I'll have to make the alternate transition operator (currently >) force an external transition rather than a local one. --- .../test/xyz/colinholzman/makina/TransitionTest.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/makina-compiler/test/xyz/colinholzman/makina/TransitionTest.kt b/makina-compiler/test/xyz/colinholzman/makina/TransitionTest.kt index 0aecb07..02fccee 100644 --- a/makina-compiler/test/xyz/colinholzman/makina/TransitionTest.kt +++ b/makina-compiler/test/xyz/colinholzman/makina/TransitionTest.kt @@ -21,6 +21,8 @@ internal class TransitionTest { assertEquals(listOf(s2, s21), transition.getEntrySet()) transition = Transition(s111, s111) assertEquals(listOf(s111), transition.getEntrySet()) + transition = Transition(s111, s1) + assertEquals(listOf(s1), transition.getEntrySet()) } @Test @@ -31,5 +33,7 @@ internal class TransitionTest { assertEquals(listOf(s111, s11, s1), transition.getExitSet()) transition = Transition(s111, s111) assertEquals(listOf(s111), transition.getExitSet()) + transition = Transition(s111, s1) + assertEquals(listOf(s111, s11, s1), transition.getExitSet()) } } \ No newline at end of file