Lines 255-261
int test_main()
Link Here
|
255 |
torrent["info"] = info; |
255 |
torrent["info"] = info; |
256 |
torrent_info ti2(torrent); |
256 |
torrent_info ti2(torrent); |
257 |
std::cerr << ti2.name() << std::endl; |
257 |
std::cerr << ti2.name() << std::endl; |
258 |
TEST_CHECK(ti2.name() == "test3"); |
258 |
TEST_CHECK(ti2.name() == "test1/test2/test3"); |
259 |
|
259 |
|
260 |
info["name.utf-8"] = "test2/../test3/.././../../test4"; |
260 |
info["name.utf-8"] = "test2/../test3/.././../../test4"; |
261 |
torrent["info"] = info; |
261 |
torrent["info"] = info; |