comparison UnitTestsSources/UnitTestsMain.cpp @ 1430:ad94a3583b07

Plugins can send answers as multipart messages
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 29 Jun 2015 17:47:34 +0200
parents 7366a0bdda6a
children f3672356c121
comparison
equal deleted inserted replaced
1429:7366a0bdda6a 1430:ad94a3583b07
805 ASSERT_FALSE(Toolbox::IsInteger("42a")); 805 ASSERT_FALSE(Toolbox::IsInteger("42a"));
806 ASSERT_FALSE(Toolbox::IsInteger("42-")); 806 ASSERT_FALSE(Toolbox::IsInteger("42-"));
807 } 807 }
808 808
809 809
810 TEST(Toolbox, StartsWith)
811 {
812 ASSERT_TRUE(Toolbox::StartsWith("hello world", ""));
813 ASSERT_TRUE(Toolbox::StartsWith("hello world", "hello"));
814 ASSERT_TRUE(Toolbox::StartsWith("hello world", "h"));
815 ASSERT_FALSE(Toolbox::StartsWith("hello world", "H"));
816 ASSERT_FALSE(Toolbox::StartsWith("h", "hello"));
817 ASSERT_TRUE(Toolbox::StartsWith("h", "h"));
818 ASSERT_FALSE(Toolbox::StartsWith("", "h"));
819 }
820
821
810 int main(int argc, char **argv) 822 int main(int argc, char **argv)
811 { 823 {
812 // Initialize Google's logging library. 824 // Initialize Google's logging library.
813 FLAGS_logtostderr = true; 825 FLAGS_logtostderr = true;
814 FLAGS_minloglevel = 0; 826 FLAGS_minloglevel = 0;