handle torrents with duplicate filenames

This commit is contained in:
Arvid Norberg
2009-06-26 16:20:57 +00:00
parent 356db54dce
commit 10eb3fa00f
6 changed files with 40 additions and 15 deletions

View File

@@ -423,6 +423,13 @@ int test_main()
TEST_CHECK(to_lower('-') == '-');
TEST_CHECK(to_lower('&') == '&');
// test string_equal_no_case
TEST_CHECK(string_equal_no_case("foobar", "FoobAR"));
TEST_CHECK(string_equal_no_case("foobar", "foobar"));
TEST_CHECK(!string_equal_no_case("foobar", "foobar "));
TEST_CHECK(!string_equal_no_case("foobar", "F00"));
// test string_begins_no_case
TEST_CHECK(string_begins_no_case("foobar", "FoobAR --"));