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