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