Go to the documentation of this file.00001
00009
00010
00011
00012
00013 #include <iostream>
00014 #include <gtest/gtest.h>
00015 #include <float.h>
00016 #include "../../include/ecl/type_traits/numeric_limits.hpp"
00017
00018
00019
00020
00021
00022 int main(int argc, char **argv) {
00023
00024 std::cout << "Sizeof Float: " << __SIZEOF_FLOAT__ << std::endl;
00025 std::cout << "Sizeof Double: " << __SIZEOF_DOUBLE__ << std::endl;
00026 std::cout << "Sizeof Long Double: " << __SIZEOF_LONG_DOUBLE__ << std::endl;
00027 int i = 1 + ecl::numeric_limits<char>::one;
00028 std::cout << i << std::endl;
00029 i = 1 + ecl::numeric_limits<ecl::uint8>::one;
00030 std::cout << i << std::endl;
00031 i = ecl::numeric_limits<char>::max();
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044 testing::InitGoogleTest(&argc,argv);
00045 return RUN_ALL_TESTS();
00046 }
00047
00048