tests/core: Update tags/genre test to new framework
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
parent
0c294d2481
commit
a74c52e5cb
|
@ -24,8 +24,6 @@ res += [ CoreTest("idle", "idle.cpp") ]
|
|||
res += SConscript("tags/Sconscript")
|
||||
Return("res")
|
||||
|
||||
#test( "tags/album" )
|
||||
#test( "tags/genre" )
|
||||
#test( "tags/library" )
|
||||
#test( "tags/track" )
|
||||
#
|
||||
|
|
|
@ -14,4 +14,5 @@ def TagTest(name, source):
|
|||
res = [ TagTest("generic", "generic.cpp") ]
|
||||
res += [ TagTest("artist", "artist.cpp") ]
|
||||
res += [ TagTest("album", "album.cpp") ]
|
||||
res += [ TagTest("genre", "genre.cpp") ]
|
||||
Return("res")
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* Copyright 2014 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <core/tags/genre.h>
|
||||
#include <tests/test.h>
|
||||
#include "../test.h"
|
||||
|
||||
static void test_artist_tag()
|
||||
{
|
||||
|
@ -34,9 +34,7 @@ static void test_genere_tag_lookup()
|
|||
test_equal(genre_db.size(), (unsigned)1);
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
test :: run("Genre Tag Test", test_artist_tag);
|
||||
test :: run("Genre Tag Lookup Test", test_genere_tag_lookup);
|
||||
return 0;
|
||||
}
|
||||
DECLARE_UNIT_TESTS(
|
||||
UNIT_TEST("Genre Tag", test_artist_tag),
|
||||
UNIT_TEST("Genre Tag Lookup", test_genere_tag_lookup),
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue