func l2s(head *ListNode) []int {
	res := []int{}
	for head != nil {
		res = append(res, head.Val)
		head = head.Next
	}
	return res
}
convert *ListNode to []int
package Problem0082
import (
	"fmt"
	"testing"
	"github.com/stretchr/testify/assert"
)
type question struct {
	para
	ans
}
type para struct {
	head []int
}
type ans struct {
	one []int
}
func Test_Problem0082(t *testing.T) {
	ast := assert.New(t)
	qs := []question{
		question{
			para{
				[]int{1, 2, 3, 3, 4, 4, 5},
			},
			ans{
				[]int{1, 2, 5},
			},
		},
		question{
			para{
				[]int{1, 1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 6, 7, 8},
			},
			ans{
				[]int{5, 6, 7, 8},
			},
		},
		question{
			para{
				[]int{1, 1, 2, 2, 3, 3, 4, 4, 5, 5},
			},
			ans{
				[]int{},
			},
		},
	}
	for _, q := range qs {
		a, p := q.ans, q.para
		fmt.Printf("~~%v~~\n", p)
		ast.Equal(a.one, l2s(deleteDuplicates(s2l(p.head))), "输入:%v", p)
	}
}