1 #include <gtest/gtest.h> 4 #include <boost/bind.hpp> 12 TEST(TestMuparser, CheckNorm){
15 input = 0; EXPECT_EQ(0, uc.
evaluate());
16 input = 10; EXPECT_EQ(10, uc.
evaluate());
17 input = -10; EXPECT_EQ(-10, uc.
evaluate());
18 input = 1000; EXPECT_EQ(-1000, uc.
evaluate());
19 input = 1001; EXPECT_EQ(-999, uc.
evaluate());
20 input = 2000; EXPECT_EQ(0, uc.
evaluate());
21 input = 2001; EXPECT_EQ(1, uc.
evaluate());
22 input = -1000; EXPECT_EQ(-1000, uc.
evaluate());
23 input = 999; EXPECT_EQ(999, uc.
evaluate());
26 int main(
int argc,
char **argv){
27 testing::InitGoogleTest(&argc, argv);
28 return RUN_ALL_TESTS();
double * mapVariable(const std::string &, double *p)
int main(int argc, char **argv)
static double * assignVariable(const std::string &name, double *ptr, const std::string &req)
TEST(TestMuparser, CheckNorm)