Changeset 11097 for code/trunk/test/core/command
- Timestamp:
- Jan 25, 2016, 9:47:54 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/test/core/command/FunctorTest.cc
r11071 r11097 98 98 TEST_F(FunctorTest, ReturnsCorrectParamCount) 99 99 { 100 EXPECT_EQ(0 , createFunctor(&DestroyableClass::method0)->getParamCount());101 EXPECT_EQ(1 , createFunctor(&DestroyableClass::method1)->getParamCount());102 EXPECT_EQ(2 , createFunctor(&DestroyableClass::method2)->getParamCount());103 EXPECT_EQ(3 , createFunctor(&DestroyableClass::method3)->getParamCount());104 EXPECT_EQ(4 , createFunctor(&DestroyableClass::method4)->getParamCount());105 EXPECT_EQ(5 , createFunctor(&DestroyableClass::method5)->getParamCount());100 EXPECT_EQ(0u, createFunctor(&DestroyableClass::method0)->getParamCount()); 101 EXPECT_EQ(1u, createFunctor(&DestroyableClass::method1)->getParamCount()); 102 EXPECT_EQ(2u, createFunctor(&DestroyableClass::method2)->getParamCount()); 103 EXPECT_EQ(3u, createFunctor(&DestroyableClass::method3)->getParamCount()); 104 EXPECT_EQ(4u, createFunctor(&DestroyableClass::method4)->getParamCount()); 105 EXPECT_EQ(5u, createFunctor(&DestroyableClass::method5)->getParamCount()); 106 106 } 107 107 … … 663 663 EXPECT_EQ(8, (*c8)(4).get<int>()); 664 664 665 EXPECT_EQ(1 , c1->getParamCount());666 EXPECT_EQ(1 , c2->getParamCount());667 EXPECT_EQ(1 , c3->getParamCount());668 EXPECT_EQ(2 , c4->getParamCount());669 EXPECT_EQ(0 , c5->getParamCount());670 EXPECT_EQ(1 , c6->getParamCount());671 EXPECT_EQ(2 , c7->getParamCount());672 EXPECT_EQ(1 , c8->getParamCount());665 EXPECT_EQ(1u, c1->getParamCount()); 666 EXPECT_EQ(1u, c2->getParamCount()); 667 EXPECT_EQ(1u, c3->getParamCount()); 668 EXPECT_EQ(2u, c4->getParamCount()); 669 EXPECT_EQ(0u, c5->getParamCount()); 670 EXPECT_EQ(1u, c6->getParamCount()); 671 EXPECT_EQ(2u, c7->getParamCount()); 672 EXPECT_EQ(1u, c8->getParamCount()); 673 673 674 674 EXPECT_EQ(typeid(int(*)(int)), c1->getFullIdentifier()); … … 768 768 FunctorPtr fp2 = createFunctor(&f2); 769 769 FunctorPtr fp3 = createFunctor(&f3); 770 ASSERT_EQ(3 , fp2->getParamCount());770 ASSERT_EQ(3u, fp2->getParamCount()); 771 771 ASSERT_NE(fp1->getParamCount(), fp3->getParamCount()); 772 772 ASSERT_FALSE(fp2->hasReturnvalue());
Note: See TracChangeset
for help on using the changeset viewer.