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 //
9 #define BOOST_TEST_MODULE ANNA_CONFIG_TEST
11 #include <anna/test/clang_specific.hpp>
12 #include <boost/test/included/unit_test.hpp>
18 #include <anna/config/Release.hpp>
19 #include <anna/core/util/defines.hpp>
24 BOOST_AUTO_TEST_CASE(release) {
25 string version = config::Release::getVersion();
26 cout << version << endl;
27 BOOST_REQUIRE(version.empty() == false);
28 int debug = version.find("/D");
29 int release = version.find("/O");
31 BOOST_REQUIRE(debug != string::npos);
32 BOOST_REQUIRE(release == string::npos);
34 BOOST_REQUIRE(debug == string::npos);
36 release != string::npos);
40 BOOST_AUTO_TEST_CASE(numbers) {
43 BOOST_REQUIRE_EQUAL(ii64, LLONG_MAX);
45 BOOST_REQUIRE_EQUAL(ii64, LLONG_MIN);
48 BOOST_REQUIRE_EQUAL(u64, ULLONG_MAX);