constants.cpp
Go to the documentation of this file.
00001 
00009 /*****************************************************************************
00010 ** Includes
00011 *****************************************************************************/
00012 
00013 #include <iostream>
00014 #include <gtest/gtest.h>
00015 #include "../../include/ecl/math/constants.hpp"
00016 
00017 /*****************************************************************************
00018 ** Tests
00019 *****************************************************************************/
00020 
00021 TEST(MathTests,pi) {
00022         EXPECT_EQ(3.141592653589793238462643383279502884197169399375105820974944, ecl::pi);
00023         EXPECT_EQ(1.57079632679489661923,ecl::pi_2);
00024         EXPECT_EQ(0.78539816339744830962,ecl::pi_4);
00025 }
00026 
00027 /*****************************************************************************
00028 ** Main program
00029 *****************************************************************************/
00030 
00031 int main(int argc, char **argv) {
00032 
00033     testing::InitGoogleTest(&argc,argv);
00034     return RUN_ALL_TESTS();
00035 }
00036 


ecl_math
Author(s): Daniel Stonier
autogenerated on Thu Jun 6 2019 21:17:37