]> Sergey Matveev's repositories - btrtrc.git/commitdiff
bencode: Use the testdata convention in tests
authorMatt Joiner <anacrolix@gmail.com>
Tue, 23 Feb 2016 10:31:15 +0000 (21:31 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 23 Feb 2016 10:31:15 +0000 (21:31 +1100)
bencode/both_test.go
bencode/testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent [moved from bencode/_testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent with 100% similarity]
bencode/testdata/continuum.torrent [moved from bencode/_testdata/continuum.torrent with 100% similarity]

index a000f35b78deb10448f6f859213be0a56fb4d47d..7ee1454ed7a0b3ac990be49009680863d9c47072 100644 (file)
@@ -33,8 +33,8 @@ func test_file_interface(t *testing.T, filename string) {
 }
 
 func TestBothInterface(t *testing.T) {
-       test_file_interface(t, "_testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent")
-       test_file_interface(t, "_testdata/continuum.torrent")
+       test_file_interface(t, "testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent")
+       test_file_interface(t, "testdata/continuum.torrent")
 }
 
 type torrent_file struct {
@@ -76,5 +76,5 @@ func test_file(t *testing.T, filename string) {
 }
 
 func TestBoth(t *testing.T) {
-       test_file(t, "_testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent")
+       test_file(t, "testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent")
 }