mirror of
https://github.com/Estom/notes.git
synced 2026-04-08 21:39:17 +08:00
go知识重新整理
This commit is contained in:
13
Go/DesignPattern/facade/facade_test.go
Normal file
13
Go/DesignPattern/facade/facade_test.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package facade
|
||||
|
||||
import "testing"
|
||||
|
||||
var expect = "A moudle running\nB module running"
|
||||
|
||||
func TestFacadeAPI(t *testing.T) {
|
||||
api := NewAPI()
|
||||
ret := api.Test()
|
||||
if ret != expect {
|
||||
t.Fatalf("expect %s,return %s", expect, ret)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user