Changeset 11097 for code/trunk/test
- Timestamp:
- Jan 25, 2016, 9:47:54 PM (9 years ago)
- Location:
- code/trunk/test/core
- Files:
-
- 4 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()); -
code/trunk/test/core/object/ObjectListTest.cc
r11071 r11097 114 114 ListableTest test3(&context2); 115 115 116 EXPECT_EQ(3 , ObjectList<ListableTest>().size());117 EXPECT_EQ(2 , ObjectList<ListableTest>(&context1).size());118 EXPECT_EQ(1 , ObjectList<ListableTest>(&context2).size());116 EXPECT_EQ(3u, ObjectList<ListableTest>().size()); 117 EXPECT_EQ(2u, ObjectList<ListableTest>(&context1).size()); 118 EXPECT_EQ(1u, ObjectList<ListableTest>(&context2).size()); 119 119 } 120 120 -
code/trunk/test/core/object/StrongPtrTest.cc
r11071 r11097 257 257 vector.push_back(test); 258 258 259 ASSERT_EQ(3 , vector.size());259 ASSERT_EQ(3u, vector.size()); 260 260 EXPECT_EQ(test, vector[0].get()); 261 261 EXPECT_EQ(test, vector[1].get()); -
code/trunk/test/core/object/WeakPtrTest.cc
r11071 r11097 184 184 vector.push_back(test); 185 185 186 ASSERT_EQ(3 , vector.size());186 ASSERT_EQ(3u, vector.size()); 187 187 EXPECT_EQ(test, vector[0].get()); 188 188 EXPECT_EQ(test, vector[1].get());
Note: See TracChangeset
for help on using the changeset viewer.