ocarina/tests/version.cpp
Anna Schumaker 95064e4537 Rename lib/ -> core/
I plan to introduce a new lib/ that sits between the gui and the backend
files (similar to how glibc sits between the kernel and userspace).
This gets the rename out of the way before I change my mind again.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2014-06-05 10:21:32 -04:00

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