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.
12 lines
149 B
12 lines
149 B
3 years ago
|
package state
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
func TestState(t *testing.T) {
|
||
|
machine := NewMachine()
|
||
|
machine.Off()
|
||
|
machine.On()
|
||
|
machine.On()
|
||
|
machine.Off()
|
||
|
}
|