abstract_test.go 276 B

12345678910111213141516171819
  1. package Abstract_Factory
  2. import (
  3. "fmt"
  4. "testing"
  5. )
  6. func Test(t *testing.T) {
  7. var factory AbstractFactory
  8. factory = new(Factory1)
  9. b := factory.CreateProductOne()
  10. b.Introduce()
  11. }
  12. func Test_A(t *testing.T) {
  13. fmt.Println(288623.05 + -48853.3031 + 67075.4 + 278000)
  14. }