mirror of
https://gitee.com/johng/gf
synced 2026-06-07 10:22:11 +08:00
update gcmd test
This commit is contained in:
@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user