26 lines
642 B
C++
26 lines
642 B
C++
|
/**
|
||
|
* @file
|
||
|
* Copyright 2014 (c) Anna Schumaker.
|
||
|
*/
|
||
|
#include <core/tags/genre.h>
|
||
|
#include <tests/test.h>
|
||
|
|
||
|
static void test_artist_tag()
|
||
|
{
|
||
|
Genre genre;
|
||
|
test_equal(genre.name(), (std::string)"");
|
||
|
test_equal(genre.lowercase(), (std::string)"");
|
||
|
test_equal(genre.primary_key(), (std::string)"");
|
||
|
|
||
|
genre = Genre("Video Game Music");
|
||
|
test_equal(genre.name(), (std::string)"Video Game Music");
|
||
|
test_equal(genre.lowercase(), (std::string)"video game music");
|
||
|
test_equal(genre.primary_key(), (std::string)"Video Game Music");
|
||
|
}
|
||
|
|
||
|
int main(int argc, char **argv)
|
||
|
{
|
||
|
run_test("Genre Tag Test", test_artist_tag);
|
||
|
return 0;
|
||
|
}
|