From: Matt Joiner Date: Tue, 23 Feb 2016 10:31:15 +0000 (+1100) Subject: bencode: Use the testdata convention in tests X-Git-Tag: v1.0.0~856 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=f470f04d8f6b6e6f163b31a2c030643ece8b470f;p=btrtrc.git bencode: Use the testdata convention in tests --- diff --git a/bencode/both_test.go b/bencode/both_test.go index a000f35b..7ee1454e 100644 --- a/bencode/both_test.go +++ b/bencode/both_test.go @@ -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") } diff --git a/bencode/_testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent b/bencode/testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent similarity index 100% rename from bencode/_testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent rename to bencode/testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent diff --git a/bencode/_testdata/continuum.torrent b/bencode/testdata/continuum.torrent similarity index 100% rename from bencode/_testdata/continuum.torrent rename to bencode/testdata/continuum.torrent