1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
13 #include <anna/config/Release.hpp>
14 #include <anna/core/util/defines.hpp>
16 #include <gtest/gtest.h>
22 TEST(config, release) {
23 string version = config::Release::getVersion();
24 cout << version << endl;
25 EXPECT_TRUE(version.empty() == false);
26 int debug = version.find("/D");
27 int release = version.find("/O");
29 EXPECT_TRUE(debug != string::npos);
30 EXPECT_TRUE(release == string::npos);
32 EXPECT_TRUE(debug == string::npos);
34 release != string::npos);
38 TEST(config, numbers) {
41 EXPECT_EQ(ii64, LLONG_MAX);
43 EXPECT_EQ(ii64, LLONG_MIN);
46 EXPECT_EQ(u64, ULLONG_MAX);
49 int main(int argc, char **argv)
51 testing::InitGoogleTest(&argc, argv);
52 return RUN_ALL_TESTS();