2013-07-05 09:40:11 -04:00
|
|
|
/*
|
2013-08-07 21:00:09 -04:00
|
|
|
* Copyright 2013 (c) Anna Schumaker.
|
2013-07-05 09:40:11 -04:00
|
|
|
*/
|
2014-06-05 10:19:22 -04:00
|
|
|
#include <core/version.h>
|
2014-04-26 11:59:12 -04:00
|
|
|
#include "test.h"
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG
|
|
|
|
const std::string expected = "6.1-debug";
|
|
|
|
#else
|
|
|
|
const std::string expected = "6.1";
|
|
|
|
#endif /* CONFIG_DEBUG */
|
|
|
|
|
|
|
|
static void test_version()
|
|
|
|
{
|
|
|
|
test_equal((std::string)get_version(), expected);
|
|
|
|
}
|
2013-07-05 09:40:11 -04:00
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
2014-04-26 11:59:12 -04:00
|
|
|
run_test("Version Test", test_version);
|
2013-07-05 09:40:11 -04:00
|
|
|
return 0;
|
|
|
|
}
|