d74d1ea634
Looks like I'll need to release a 6.1.1 soon Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
23 lines
402 B
C++
23 lines
402 B
C++
/*
|
|
* Copyright 2013 (c) Anna Schumaker.
|
|
*/
|
|
#include <core/version.h>
|
|
#include <tests/test.h>
|
|
|
|
#ifdef CONFIG_DEBUG
|
|
const std::string expected = "6.1.1-debug";
|
|
#else
|
|
const std::string expected = "6.1.1";
|
|
#endif /* CONFIG_DEBUG */
|
|
|
|
static void test_version()
|
|
{
|
|
test_equal((std::string)get_version(), expected);
|
|
}
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
run_test("Version Test", test_version);
|
|
return 0;
|
|
}
|