$search
00001 00009 /***************************************************************************** 00010 ** Includes 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 ** Main 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 // std::cout << i << std::endl; 00033 // i = ecl::numeric_limits<unsigned char>::max(); 00034 // std::cout << i << std::endl; 00035 // int bytes = ecl::numeric_limits<unsigned char>::bytes; 00036 // std::cout << "Bytes: " << bytes << std::endl; 00037 // 00038 // bytes = ecl::numeric_limits<ecl::uint16>::bytes; 00039 // std::cout << "Bytes: " << bytes << std::endl; 00040 // int maximum = ecl::numeric_limits<ecl::uint16>::maximum; 00041 // std::cout << "Max: " << maximum << std::endl; 00042 00043 // std::cout << 5 ULL << std::endl; 00044 testing::InitGoogleTest(&argc,argv); 00045 return RUN_ALL_TESTS(); 00046 } 00047 00048