mirror of
https://github.com/crazybber/go-pattern-examples.git
synced 2024-11-23 12:26:03 +03:00
15 lines
250 B
Go
15 lines
250 B
Go
package facade
|
|
|
|
import "testing"
|
|
|
|
var expect = "A module running\nB module running"
|
|
|
|
// TestFacadeAPI ...
|
|
func TestFacadeAPI(t *testing.T) {
|
|
api := NewAPI()
|
|
ret := api.Test()
|
|
if ret != expect {
|
|
t.Fatalf("expect %s, return %s", expect, ret)
|
|
}
|
|
}
|