state_test.go
最后更新于:2022-04-02 04:50:27
~~~
package state
import (
"fmt"
"testing"
)
func TestState(t *testing.T) {
w := NewWork()
fmt.Println("========================")
w.writeProgram()
fmt.Println("========================")
w.SetHour(12)
w.writeProgram()
fmt.Println("========================")
w.SetHour(14)
w.writeProgram()
fmt.Println("========================")
w.SetHour(21)
w.writeProgram()
}
~~~
';