update gcmd test

This commit is contained in:
zcool321@sina.com
2019-06-15 22:11:08 +08:00
parent 3e2d5e0bdb
commit cd30efaaa1

View File

@ -40,10 +40,13 @@ func Test_Handle(t *testing.T) {
os.Args = []string{"gf", "gf"}
doInit()
gtest.Case(t, func() {
num := 1
BindHandle("gf", func() {
print("gf test")
num += 1
})
RunHandle("gf")
gtest.AssertEQ(num, 2)
AutoRun()
gtest.AssertEQ(num, 3)
})
}