Skip to content

Commit 120291b

Browse files
committed
[Test] Update testREADME_tryEvent()
1 parent 84d4b42 commit 120291b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Tests/BasicTests.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ class BasicTests: _TestCase
5858
.State0 => .State1,
5959
.State1 => .State2,
6060
])
61+
62+
// add event handler
63+
machine.addHandler(event: .Event0) { context in
64+
print(".Event0 triggered!")
65+
}
6166
}
6267

6368
// initial

0 commit comments

Comments
 (0)