Skip to content

Commit 18af11d

Browse files
committed
tests formatting
1 parent d974660 commit 18af11d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/test/groovy/answers/FsmTest.groovy

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ class FsmTest extends Specification {
6262

6363
when: 'on-from-into'
6464
def fsm = Fsm.create("initialState") {
65-
it.add { it.on _event1 from _event1From into _event1Into } // it.on from into
66-
it.add { it.from _event2From on _event2 into _event2Into } // from it.on into
67-
it.add { it.from _event3From into _event3Into on _event3 } // from into on
68-
it.add { it.into _event4Into from _event4From on _event4 } // into from on
65+
it.add { it.on _event1 from _event1From into _event1Into } // it.on from into
66+
it.add { it.from _event2From on _event2 into _event2Into } // from it.on into
67+
it.add { it.from _event3From into _event3Into on _event3 } // from into on
68+
it.add { it.into _event4Into from _event4From on _event4 } // into from on
6969
}
7070

7171
then: 'outcome is always the same'
@@ -100,7 +100,7 @@ class FsmTest extends Specification {
100100

101101
and: 'create fsm with single transition not designed for state'
102102
def fsm = Fsm.create(_state) {
103-
it.add { it.on _event from 'stateFrom' into 'stateTo' }
103+
it.add { it.on _event from 'stateFrom' into 'stateTo' }
104104
}
105105

106106
when: 'transition is not designed for current state'
@@ -121,7 +121,7 @@ class FsmTest extends Specification {
121121

122122
and: 'create fsm with single transition designed for state'
123123
def fsm = Fsm.create(_state) {
124-
it.add { it.on _event from _state into _stateTo }
124+
it.add { it.on _event from _state into _stateTo }
125125
}
126126

127127
when: 'transition is designed for current state'
@@ -145,7 +145,7 @@ class FsmTest extends Specification {
145145

146146
given: 'create fsm with single transition'
147147
def fsm = Fsm.create('initialState') {
148-
it.add { it.on 'event' from 'initialState' into 'state2' }
148+
it.add { it.on 'event' from 'initialState' into 'state2' }
149149
}
150150

151151
and: 'state changes to state2'

0 commit comments

Comments
 (0)