ocarina/tests/version.cpp

23 lines
392 B
C++

/*
* Copyright 2013 (c) Anna Schumaker.
*/
#include <core/version.h>
#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);
}
int main(int argc, char **argv)
{
run_test("Version Test", test_version);
return 0;
}