Skip to content

Commit

Permalink
Added cases to TransitionTest.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
clnhlzmn committed Mar 26, 2021
1 parent 7c67fa5 commit fbdd102
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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())
}
}

0 comments on commit fbdd102

Please sign in to comment.