ocarina/tests/core/version.cpp
Anna Schumaker e6e9fb08d0 Time to begin work on Ocarina 6.3!
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2014-11-01 20:25:55 -04:00

23 lines
398 B
C++

/*
* Copyright 2013 (c) Anna Schumaker.
*/
#include <core/version.h>
#include <tests/test.h>
#ifdef CONFIG_DEBUG
const std::string expected = "6.3-debug";
#else
const std::string expected = "6.3";
#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;
}