forked from go/golangs_learn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
149 B
11 lines
149 B
package state
|
|
|
|
import "testing"
|
|
|
|
func TestState(t *testing.T) {
|
|
machine := NewMachine()
|
|
machine.Off()
|
|
machine.On()
|
|
machine.On()
|
|
machine.Off()
|
|
}
|
|
|