endianness.cpp
Go to the documentation of this file.
1 
9 /*****************************************************************************
10 ** Includes
11 *****************************************************************************/
12 
13 #include <iostream>
14 #include <gtest/gtest.h>
15 #include "../../include/ecl/config/endianness.hpp"
16 
17 /*****************************************************************************
18 ** Tests
19 *****************************************************************************/
20 /*
21  * Doesn't matter what the result is, just provide coverage.
22  * compile time if they aren't.
23  */
24 TEST(TypeTests,fundamentals) {
25  bool result = ecl::is_big_endian();
26  result = false;
27  SUCCEED();
28 }
29 
30 /*****************************************************************************
31 ** Main
32 *****************************************************************************/
33 
34 int main(int argc, char **argv) {
35  testing::InitGoogleTest(&argc,argv);
36  return RUN_ALL_TESTS();
37 }
38 
39 
TEST(TypeTests, fundamentals)
Definition: endianness.cpp:24
int main(int argc, char **argv)
Definition: endianness.cpp:34
bool is_big_endian()
Determines if your platform is big endian (at compile time).
Definition: endianness.hpp:38


ecl_config
Author(s): Daniel Stonier
autogenerated on Fri Jun 7 2019 21:52:41