You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: 287. Find the Duplicate Number_test.go
    path of file: ./repos/LeetCode-Go/leetcode/0287.Find-the-Duplicate-Number
    
    the code of the file until where you have to start completion: package leetcode

import (
	"fmt"
	"testing"
)

type question287 struct {
	para287
	ans287
}

// para 是参数
// one 代表第一个参数
ty
    
func Test_Problem287(t *testing.T) {

	qs := []question287{

		{
			para287{[]int{1, 3, 4, 2, 2}},
			ans287{2},
		},

		{
			para287{[]int{3, 1, 3, 4, 2}},
			ans287{3},
		},

		{
			para287{[]int{2, 2, 2, 2, 2}},
			ans287{2},
		},
	}

	fmt.Printf("------------------------Leetcode Problem 287------------------------\n")

	for _, q := range qs {
		_, p := q.ans287, q.para287
		fmt.Printf("【input】:%v       【output】:%v\n", p, findDuplicate(p.one))
	}
	fmt.Printf("\n\n\n")
}