tests/core: Update tags/album unit test to the new framework

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2015-08-27 10:59:43 -04:00
parent e6f26d036c
commit 0c294d2481
2 changed files with 6 additions and 7 deletions

View File

@ -13,4 +13,5 @@ def TagTest(name, source):
res = [ TagTest("generic", "generic.cpp") ]
res += [ TagTest("artist", "artist.cpp") ]
res += [ TagTest("album", "album.cpp") ]
Return("res")

View File

@ -2,7 +2,7 @@
* Copyright 2014 (c) Anna Schumaker.
*/
#include <core/tags/album.h>
#include <tests/test.h>
#include "../test.h"
static void test_album_tag()
{
@ -52,9 +52,7 @@ static void test_album_tag_lookup()
test_equal(album_db.size(), (unsigned)1);
}
int main(int argc, char **argv)
{
test :: run("Album Tag Test", test_album_tag);
test :: run("Album Tag Lookup Test", test_album_tag_lookup);
return 0;
}
DECLARE_UNIT_TESTS(
UNIT_TEST("Album Tag", test_album_tag),
UNIT_TEST("Album Tag Lookup", test_album_tag_lookup),
);