comparison UnitTestsSources/UnitTestsMain.cpp @ 1492:9f66a12eb8fc

fix warnings for gcc 5
author jodogne
date Tue, 04 Aug 2015 14:47:35 +0200
parents 27661b33f624
children 52dc56bcec7d
comparison
equal deleted inserted replaced
1491:e460341872dc 1492:9f66a12eb8fc
664 TEST(Toolbox, Tokenize) 664 TEST(Toolbox, Tokenize)
665 { 665 {
666 std::vector<std::string> t; 666 std::vector<std::string> t;
667 667
668 Toolbox::TokenizeString(t, "", ','); 668 Toolbox::TokenizeString(t, "", ',');
669 ASSERT_EQ(1, t.size()); 669 ASSERT_EQ(1u, t.size());
670 ASSERT_EQ("", t[0]); 670 ASSERT_EQ("", t[0]);
671 671
672 Toolbox::TokenizeString(t, "abc", ','); 672 Toolbox::TokenizeString(t, "abc", ',');
673 ASSERT_EQ(1, t.size()); 673 ASSERT_EQ(1u, t.size());
674 ASSERT_EQ("abc", t[0]); 674 ASSERT_EQ("abc", t[0]);
675 675
676 Toolbox::TokenizeString(t, "ab,cd,ef,", ','); 676 Toolbox::TokenizeString(t, "ab,cd,ef,", ',');
677 ASSERT_EQ(4, t.size()); 677 ASSERT_EQ(4u, t.size());
678 ASSERT_EQ("ab", t[0]); 678 ASSERT_EQ("ab", t[0]);
679 ASSERT_EQ("cd", t[1]); 679 ASSERT_EQ("cd", t[1]);
680 ASSERT_EQ("ef", t[2]); 680 ASSERT_EQ("ef", t[2]);
681 ASSERT_EQ("", t[3]); 681 ASSERT_EQ("", t[3]);
682 } 682 }