2021-10-25 13:16:56 +08:00
|
|
|
package torrent
|
|
|
|
|
2021-11-25 19:59:20 +08:00
|
|
|
// // Ensure that cmp.Diff will detect errors as required.
|
|
|
|
// func TestPendingRequestsDiff(t *testing.T) {
|
|
|
|
// var a, b pendingRequests
|
|
|
|
// c := qt.New(t)
|
|
|
|
// diff := func() string { return cmp.Diff(a.m, b.m) }
|
|
|
|
// c.Check(diff(), qt.ContentEquals, "")
|
|
|
|
// a.m = []int{1, 3}
|
|
|
|
// b.m = []int{1, 2, 3}
|
|
|
|
// c.Check(diff(), qt.Not(qt.Equals), "")
|
|
|
|
// }
|