src
test
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
main
int main(int argc, char **argv)
Definition:
endianness.cpp:34
TEST
TEST(TypeTests, fundamentals)
Definition:
endianness.cpp:24
ecl::is_big_endian
bool is_big_endian()
Determines if your platform is big endian (at compile time).
Definition:
endianness.hpp:44
ecl_config
Author(s): Daniel Stonier
autogenerated on Wed Mar 2 2022 00:13:53