demo2_test.go 273 B

12345678910111213141516171819
  1. package test
  2. import (
  3. "fmt"
  4. "testing"
  5. )
  6. func TestDemo2(t *testing.T) {
  7. t.Run("Adapters_test", test21)
  8. }
  9. func test21(t *testing.T) {
  10. a := []int{1, 2, 3, 4, 5}
  11. b := []int{6, 7, 8, 9}
  12. c := make([]int, 0, 9)
  13. c = append(c, a...)
  14. c = append(c, b...)
  15. fmt.Println(c)
  16. }