go-pattern-examples/structure/01_facade/facade_test.go

14 lines
199 B
Go
Raw Permalink Normal View History

2020-04-21 17:50:21 +03:00
package facade
import "testing"
2020-04-28 06:41:19 +03:00
func TestFacadeSuperMarket(t *testing.T) {
supermarket := NewSuperMarket()
supermarket.Sell(1, 3, 5)
supermarket.Sell(2, 11, 30)
supermarket.Sell(8, 8, 30)
2020-04-21 17:50:21 +03:00
}