------------------------------------------------------------
revno: 2798
committer: Jacek Sieka <[email protected]>
branch nick: dcplusplus
timestamp: Sun 2012-01-08 11:15:46 +0100
message:
Fix torrent tests
modified:
test/testtorrent.cpp
--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk
Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'test/testtorrent.cpp'
--- test/testtorrent.cpp 2011-04-27 19:57:37 +0000
+++ test/testtorrent.cpp 2012-01-08 10:15:46 +0000
@@ -16,8 +16,8 @@
{
Torrent u(ubuntu);
- ASSERT_EQ(1, u.files.size());
- ASSERT_EQ(728754176, u.files[0].length);
- ASSERT_EQ(1, u.files[0].path.size());
- ASSERT_EQ("ubuntu-10.10-desktop-amd64.iso", u.files[0].path[0]);
+ ASSERT_EQ(1, u.getFiles().size());
+ ASSERT_EQ(728754176, u.getFiles()[0].length);
+ ASSERT_EQ(1, u.getFiles()[0].path.size());
+ ASSERT_EQ("ubuntu-10.10-desktop-amd64.iso", u.getFiles()[0].path[0]);
}
_______________________________________________
Mailing list: https://launchpad.net/~linuxdcpp-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~linuxdcpp-team
More help : https://help.launchpad.net/ListHelp