goroutine stack stack overflow 递归 快排 快速排序 栈溢出
runtime: goroutine stack exceeds 1000000000-byte limit
runtime: sp=0xc020161348 stack=[0xc020160000, 0xc040160000]
fatal error: stack overflow
递归 栈溢出
package LabGO func quickSort(input []int) []int { n := len(input) if n <= 1 { return input } axis := 0 v := input[axis] var L, R []int for i := 0; i < n; i++ { u := input[i] if u < v { L = append(L, u) } else { R = append(R, u) } } L = quickSort(L) R = quickSort(R) L = append(L, R...) return L }
func Test_quickSort(t *testing.T) { type args struct { input []int } tests := []struct { name string args args want []int }{ // TODO: Add test cases. {name: "1", args: args{input: []int{3, 2, 4, 1}}, want: []int{1, 2, 3, 4}}, {name: "x-0", args: args{input: []int{}}, want: []int{}}, {name: "x-1", args: args{input: []int{1}}, want: []int{1}}, {name: "x-2", args: args{input: []int{1, 2}}, want: []int{1, 2}}, {name: "x-3", args: args{input: []int{1, 2, 3}}, want: []int{1, 2, 3}}, {name: "x-4", args: args{input: []int{3, 2, 1}}, want: []int{1, 2, 3}}, {name: "2", args: args{input: []int{6, 202, 100, 301, 38, 8, 1}}, want: []int{1, 6, 8, 38, 100, 202, 301}}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got := quickSort(tt.args.input); !reflect.DeepEqual(got, tt.want) { t.Errorf("quickSort() = %v, want %v", got, tt.want) } }) } }
Running tool: C:\Program Files\Go\bin\go.exe test -timeout 30s -run ^Test_quickSort$ LabGO === RUN Test_quickSort === RUN Test_quickSort/1 runtime: goroutine stack exceeds 1000000000-byte limit runtime: sp=0xc020161390 stack=[0xc020160000, 0xc040160000] fatal error: stack overflow runtime stack: runtime.throw({0x98c7a4?, 0xa63080?}) C:/Program Files/Go/src/runtime/panic.go:992 +0x76 runtime.newstack() C:/Program Files/Go/src/runtime/stack.go:1101 +0x5db runtime.morestack() C:/Program Files/Go/src/runtime/asm_amd64.s:547 +0x93 goroutine 7 [running]: runtime.mallocgc(0x8?, 0x0?, 0x0?) C:/Program Files/Go/src/runtime/malloc.go:909 +0x91d fp=0xc0201613a0 sp=0xc020161398 pc=0x85d89d runtime.growslice(0x1c13b9a0108?, {0x0?, 0xa7b240?, 0xc0027d2c70?}, 0x0?) C:/Program Files/Go/src/runtime/slice.go:272 +0x4ac fp=0xc020161408 sp=0xc0201613a0 pc=0x89b50c LabGO.quickSort({0xc0027d2c70?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:16 +0x145 fp=0xc0201614b0 sp=0xc020161408 pc=0x954c25 LabGO.quickSort({0xc0027d2c60?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020161558 sp=0xc0201614b0 pc=0x954cae LabGO.quickSort({0xc0027d2c40?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020161600 sp=0xc020161558 pc=0x954cae LabGO.quickSort({0xc0027d2c30?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc0201616a8 sp=0xc020161600 pc=0x954cae LabGO.quickSort({0xc0027d2c10?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020161750 sp=0xc0201616a8 pc=0x954cae LabGO.quickSort({0xc0027d2c00?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc0201617f8 sp=0xc020161750 pc=0x954cae LabGO.quickSort({0xc0027d2be0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc0201618a0 sp=0xc0201617f8 pc=0x954cae LabGO.quickSort({0xc0027d2bd0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020161948 sp=0xc0201618a0 pc=0x954cae LabGO.quickSort({0xc0027d2bb0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc0201619f0 sp=0xc020161948 pc=0x954cae LabGO.quickSort({0xc0027d2ba0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020161a98 sp=0xc0201619f0 pc=0x954cae LabGO.quickSort({0xc0027d2b80?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020161b40 sp=0xc020161a98 pc=0x954cae LabGO.quickSort({0xc0027d2b70?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020161be8 sp=0xc020161b40 pc=0x954cae LabGO.quickSort({0xc0027d2b50?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020161c90 sp=0xc020161be8 pc=0x954cae LabGO.quickSort({0xc0027d2b40?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020161d38 sp=0xc020161c90 pc=0x954cae LabGO.quickSort({0xc0027d2b20?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020161de0 sp=0xc020161d38 pc=0x954cae LabGO.quickSort({0xc0027d2b10?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020161e88 sp=0xc020161de0 pc=0x954cae LabGO.quickSort({0xc0027d2af0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020161f30 sp=0xc020161e88 pc=0x954cae LabGO.quickSort({0xc0027d2ae0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020161fd8 sp=0xc020161f30 pc=0x954cae LabGO.quickSort({0xc0027d2ac0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020162080 sp=0xc020161fd8 pc=0x954cae LabGO.quickSort({0xc0027d2ab0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020162128 sp=0xc020162080 pc=0x954cae LabGO.quickSort({0xc0027d2a90?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc0201621d0 sp=0xc020162128 pc=0x954cae LabGO.quickSort({0xc0027d2a80?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020162278 sp=0xc0201621d0 pc=0x954cae LabGO.quickSort({0xc0027d2a60?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020162320 sp=0xc020162278 pc=0x954cae LabGO.quickSort({0xc0027d2a50?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc0201623c8 sp=0xc020162320 pc=0x954cae LabGO.quickSort({0xc0027d2a30?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020162470 sp=0xc0201623c8 pc=0x954cae LabGO.quickSort({0xc0027d2a20?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020162518 sp=0xc020162470 pc=0x954cae LabGO.quickSort({0xc0027d2a00?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc0201625c0 sp=0xc020162518 pc=0x954cae LabGO.quickSort({0xc0027d29f0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020162668 sp=0xc0201625c0 pc=0x954cae LabGO.quickSort({0xc0027d29d0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020162710 sp=0xc020162668 pc=0x954cae LabGO.quickSort({0xc0027d29c0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc0201627b8 sp=0xc020162710 pc=0x954cae LabGO.quickSort({0xc0027d29a0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020162860 sp=0xc0201627b8 pc=0x954cae LabGO.quickSort({0xc0027d2990?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020162908 sp=0xc020162860 pc=0x954cae LabGO.quickSort({0xc0027d2970?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc0201629b0 sp=0xc020162908 pc=0x954cae LabGO.quickSort({0xc0027d2960?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020162a58 sp=0xc0201629b0 pc=0x954cae LabGO.quickSort({0xc0027d2940?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020162b00 sp=0xc020162a58 pc=0x954cae LabGO.quickSort({0xc0027d2930?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020162ba8 sp=0xc020162b00 pc=0x954cae LabGO.quickSort({0xc0027d2910?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020162c50 sp=0xc020162ba8 pc=0x954cae LabGO.quickSort({0xc0027d2900?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020162cf8 sp=0xc020162c50 pc=0x954cae LabGO.quickSort({0xc0027d28e0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020162da0 sp=0xc020162cf8 pc=0x954cae LabGO.quickSort({0xc0027d28d0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020162e48 sp=0xc020162da0 pc=0x954cae LabGO.quickSort({0xc0027d28b0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020162ef0 sp=0xc020162e48 pc=0x954cae LabGO.quickSort({0xc0027d28a0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020162f98 sp=0xc020162ef0 pc=0x954cae LabGO.quickSort({0xc0027d2880?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020163040 sp=0xc020162f98 pc=0x954cae LabGO.quickSort({0xc0027d2870?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc0201630e8 sp=0xc020163040 pc=0x954cae LabGO.quickSort({0xc0027d2850?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020163190 sp=0xc0201630e8 pc=0x954cae LabGO.quickSort({0xc0027d2840?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020163238 sp=0xc020163190 pc=0x954cae LabGO.quickSort({0xc0027d2820?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc0201632e0 sp=0xc020163238 pc=0x954cae LabGO.quickSort({0xc0027d2810?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020163388 sp=0xc0201632e0 pc=0x954cae LabGO.quickSort({0xc0027d27f0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020163430 sp=0xc020163388 pc=0x954cae LabGO.quickSort({0xc0027d27e0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc0201634d8 sp=0xc020163430 pc=0x954cae LabGO.quickSort({0xc0027d27c0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020163580 sp=0xc0201634d8 pc=0x954cae LabGO.quickSort({0xc0027d27b0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020163628 sp=0xc020163580 pc=0x954cae LabGO.quickSort({0xc0027d2790?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc0201636d0 sp=0xc020163628 pc=0x954cae LabGO.quickSort({0xc0027d2780?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020163778 sp=0xc0201636d0 pc=0x954cae LabGO.quickSort({0xc0027d2760?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020163820 sp=0xc020163778 pc=0x954cae LabGO.quickSort({0xc0027d2750?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc0201638c8 sp=0xc020163820 pc=0x954cae LabGO.quickSort({0xc0027d2730?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020163970 sp=0xc0201638c8 pc=0x954cae LabGO.quickSort({0xc0027d2720?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020163a18 sp=0xc020163970 pc=0x954cae LabGO.quickSort({0xc0027d2700?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020163ac0 sp=0xc020163a18 pc=0x954cae LabGO.quickSort({0xc0027d26f0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020163b68 sp=0xc020163ac0 pc=0x954cae LabGO.quickSort({0xc0027d26d0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020163c10 sp=0xc020163b68 pc=0x954cae LabGO.quickSort({0xc0027d26c0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020163cb8 sp=0xc020163c10 pc=0x954cae LabGO.quickSort({0xc0027d26a0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020163d60 sp=0xc020163cb8 pc=0x954cae LabGO.quickSort({0xc0027d2690?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020163e08 sp=0xc020163d60 pc=0x954cae LabGO.quickSort({0xc0027d2670?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020163eb0 sp=0xc020163e08 pc=0x954cae LabGO.quickSort({0xc0027d2660?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020163f58 sp=0xc020163eb0 pc=0x954cae LabGO.quickSort({0xc0027d2640?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020164000 sp=0xc020163f58 pc=0x954cae LabGO.quickSort({0xc0027d2630?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc0201640a8 sp=0xc020164000 pc=0x954cae LabGO.quickSort({0xc0027d2610?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020164150 sp=0xc0201640a8 pc=0x954cae LabGO.quickSort({0xc0027d2600?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc0201641f8 sp=0xc020164150 pc=0x954cae LabGO.quickSort({0xc0027d25e0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc0201642a0 sp=0xc0201641f8 pc=0x954cae LabGO.quickSort({0xc0027d25d0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020164348 sp=0xc0201642a0 pc=0x954cae LabGO.quickSort({0xc0027d25b0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc0201643f0 sp=0xc020164348 pc=0x954cae LabGO.quickSort({0xc0027d25a0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020164498 sp=0xc0201643f0 pc=0x954cae LabGO.quickSort({0xc0027d2580?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020164540 sp=0xc020164498 pc=0x954cae LabGO.quickSort({0xc0027d2570?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc0201645e8 sp=0xc020164540 pc=0x954cae LabGO.quickSort({0xc0027d2550?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020164690 sp=0xc0201645e8 pc=0x954cae LabGO.quickSort({0xc0027d2540?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020164738 sp=0xc020164690 pc=0x954cae LabGO.quickSort({0xc0027d2520?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc0201647e0 sp=0xc020164738 pc=0x954cae LabGO.quickSort({0xc0027d2510?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020164888 sp=0xc0201647e0 pc=0x954cae LabGO.quickSort({0xc0027d24f0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020164930 sp=0xc020164888 pc=0x954cae LabGO.quickSort({0xc0027d24e0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc0201649d8 sp=0xc020164930 pc=0x954cae LabGO.quickSort({0xc0027d24c0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020164a80 sp=0xc0201649d8 pc=0x954cae LabGO.quickSort({0xc0027d24b0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020164b28 sp=0xc020164a80 pc=0x954cae LabGO.quickSort({0xc0027d2490?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020164bd0 sp=0xc020164b28 pc=0x954cae LabGO.quickSort({0xc0027d2480?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020164c78 sp=0xc020164bd0 pc=0x954cae LabGO.quickSort({0xc0027d2460?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020164d20 sp=0xc020164c78 pc=0x954cae LabGO.quickSort({0xc0027d2450?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020164dc8 sp=0xc020164d20 pc=0x954cae LabGO.quickSort({0xc0027d2430?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020164e70 sp=0xc020164dc8 pc=0x954cae LabGO.quickSort({0xc0027d2420?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020164f18 sp=0xc020164e70 pc=0x954cae LabGO.quickSort({0xc0027d2400?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020164fc0 sp=0xc020164f18 pc=0x954cae LabGO.quickSort({0xc0027d23f0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020165068 sp=0xc020164fc0 pc=0x954cae LabGO.quickSort({0xc0027d23d0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020165110 sp=0xc020165068 pc=0x954cae LabGO.quickSort({0xc0027d23c0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc0201651b8 sp=0xc020165110 pc=0x954cae LabGO.quickSort({0xc0027d23a0?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020165260 sp=0xc0201651b8 pc=0x954cae LabGO.quickSort({0xc0027d2390?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020165308 sp=0xc020165260 pc=0x954cae LabGO.quickSort({0xc0027d2370?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc0201653b0 sp=0xc020165308 pc=0x954cae LabGO.quickSort({0xc0027d2360?, 0x2, 0xa7b240?}) d:/code/LabGO/qs.go:20 +0x1ce fp=0xc020165458 sp=0xc0201653b0 pc=0x954cae ...additional frames elided... created by testing.(*T).Run C:/Program Files/Go/src/testing/testing.go:1486 +0x35f goroutine 1 [chan receive]: testing.(*T).Run(0xc0001201a0, {0x98c638?, 0x8b7fb3?}, 0x996c18) C:/Program Files/Go/src/testing/testing.go:1487 +0x37a testing.runTests.func1(0xc000070750?) C:/Program Files/Go/src/testing/testing.go:1839 +0x6e testing.tRunner(0xc0001201a0, 0xc000079cd8) C:/Program Files/Go/src/testing/testing.go:1439 +0x102 testing.runTests(0xc00005c280?, {0xa767c0, 0xf, 0xf}, {0x1c13b9a0108?, 0x40?, 0xa7ab40?}) C:/Program Files/Go/src/testing/testing.go:1837 +0x457 testing.(*M).Run(0xc00005c280) C:/Program Files/Go/src/testing/testing.go:1719 +0x5d9 main.main() _testmain.go:75 +0x1aa goroutine 6 [chan receive]: testing.(*T).Run(0xc000120340, {0x98a1b4?, 0x0?}, 0xc000044680) C:/Program Files/Go/src/testing/testing.go:1487 +0x37a LabGO.Test_quickSort(0x0?) d:/code/LabGO/g_test.go:304 +0x471 testing.tRunner(0xc000120340, 0x996c18) C:/Program Files/Go/src/testing/testing.go:1439 +0x102 created by testing.(*T).Run C:/Program Files/Go/src/testing/testing.go:1486 +0x35f FAIL LabGO 2.105s