|
|
Choosing A Webhost: |
[mb-commits] r7702 - libmusicbrainz/branches/xmlws/test: msg#00309audio.musicbrainz.cvs
Author: luks Date: 2006-05-27 10:08:38 +0000 (Sat, 27 May 2006) New Revision: 7702 Modified: libmusicbrainz/branches/xmlws/test/test_ws_includes.cpp Log: Split tests into smaller functions. Modified: libmusicbrainz/branches/xmlws/test/test_ws_includes.cpp =================================================================== --- libmusicbrainz/branches/xmlws/test/test_ws_includes.cpp 2006-05-27 09:54:37 UTC (rev 7701) +++ libmusicbrainz/branches/xmlws/test/test_ws_includes.cpp 2006-05-27 10:08:38 UTC (rev 7702) @@ -9,25 +9,32 @@ class ArtistIncludesTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(ArtistIncludesTest); - CPPUNIT_TEST(testIncludes); + CPPUNIT_TEST(testIncludes1); + CPPUNIT_TEST(testIncludes2); + CPPUNIT_TEST(testIncludes3); CPPUNIT_TEST_SUITE_END(); protected: - void testIncludes() + void testIncludes1() { ArtistIncludes inc1 = ArtistIncludes().aliases().releaseRelations(); vector<string> tags1 = inc1.createIncludeTags(); sort(tags1.begin(), tags1.end()); CPPUNIT_ASSERT_EQUAL(string("aliases"), tags1[0]); CPPUNIT_ASSERT_EQUAL(string("release-rels"), tags1[1]); + } + void testIncludes2() + { ArtistIncludes inc2 = ArtistIncludes().releaseRelations(); vector<string> tags2 = inc2.createIncludeTags(); sort(tags2.begin(), tags2.end()); CPPUNIT_ASSERT(string("aliases") != tags2[0]); - CPPUNIT_ASSERT(string("release-rels") != tags2[1]); + } + void testIncludes3() + { ArtistIncludes inc3 = ArtistIncludes().aliases().vaReleases("Bootleg").releases("Official"); vector<string> tags3 = inc3.createIncludeTags(); sort(tags3.begin(), tags3.end());
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [mb-commits] r7701 - in libmusicbrainz/branches/xmlws: include/musicbrainz3 lib, root |
|---|---|
| Next by Date: | [mb-commits] r7703 - in libmusicbrainz/branches/xmlws: include/musicbrainz3 lib test, root |
| Previous by Thread: | [mb-commits] r7701 - in libmusicbrainz/branches/xmlws: include/musicbrainz3 lib, root |
| Next by Thread: | [mb-commits] r7703 - in libmusicbrainz/branches/xmlws: include/musicbrainz3 lib test, root |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |