X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=peerid_test.go;h=bcf09998b1df2ca1e04e917c5db6d03904ce6ac7;hb=5efb4dd9410e28bb2d6320268af4f98366be6508;hp=3d89ef4b3c0b668c56d60a0c7bcc5e06757dfcfa;hpb=c44ee5fec4592cdfe5b8e0f40121ea6664144c5c;p=btrtrc.git diff --git a/peerid_test.go b/peerid_test.go index 3d89ef4b..bcf09998 100644 --- a/peerid_test.go +++ b/peerid_test.go @@ -1,22 +1,16 @@ package torrent -import ( - "testing" - - "github.com/anacrolix/missinggo" - "github.com/stretchr/testify/assert" -) - -func TestPeerIdString(t *testing.T) { - for _, _case := range []struct { - id string - s string - }{ - {"\x1cNJ}\x9c\xc7\xc4o\x94<\x9b\x8c\xc2!I\x1c\a\xec\x98n", "1c4e4a7d9cc7c46f943c9b8cc221491c07ec986e"}, - {"-FD51W\xe4-LaZMk0N8ZLA7", "-FD51W\xe4-4c615a4d6b304e385a4c4137"}, - } { - var pi peerID - missinggo.CopyExact(&pi, _case.id) - assert.EqualValues(t, _case.s, pi.String()) - } -} +// func TestPeerIdString(t *testing.T) { +// for _, _case := range []struct { +// id string +// s string +// }{ +// {"\x1cNJ}\x9c\xc7\xc4o\x94<\x9b\x8c\xc2!I\x1c\a\xec\x98n", "\"\x1cNJ}\x9c\xc7\xc4o\x94<\x9b\x8c\xc2!I\x1c\a\xec\x98n\""}, +// {"-FD51W\xe4-LaZMk0N8ZLA7", "-FD51W\xe4-LaZMk0N8ZLA7"}, +// } { +// var pi PeerID +// missinggo.CopyExact(&pi, _case.id) +// assert.EqualValues(t, _case.s, pi.String()) +// assert.EqualValues(t, fmt.Sprintf("%q", _case.s), fmt.Sprintf("%q", pi)) +// } +// }