ocarina/tests/core/version.cpp
Anna Schumaker d74d1ea634 Prepare for a bugfix release
Looks like I'll need to release a 6.1.1 soon

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2014-06-22 12:35:08 -04:00

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;
}