Private
Public Access
2
0

gtest: fix version test and change test cmake var name

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-05-20 15:40:28 +01:00
parent 521b6817d7
commit 94941f5100
3 changed files with 16 additions and 8 deletions

View File

@@ -1,8 +1,12 @@
#include "maa.h"
#include <maa.h>
#include "gtest/gtest.h"
#include "version.h"
using namespace maa;
TEST (basic, GetVersion) {
ASSERT_EQ(get_version(), 1);
/* Careful, this test will only attempt to check the returned version is valid,
* it doesn't try to check the version is a release one.
*/
TEST (basic, maa_get_version) {
char bar[64];
strcpy(bar, maa_get_version());
ASSERT_STREQ(maa_get_version(), gVERSION);
}