comparison UnitTestsSources/RestApiTests.cpp @ 2824:0e1b79bc4a2d

fix for msvc
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 18 Sep 2018 16:31:42 +0200
parents 807169f85ba9
children 22524fd06225
comparison
equal deleted inserted replaced
2823:807169f85ba9 2824:0e1b79bc4a2d
631 ASSERT_TRUE(p.GetHttpHeaders().empty()); 631 ASSERT_TRUE(p.GetHttpHeaders().empty());
632 632
633 std::set<std::string> tmp; 633 std::set<std::string> tmp;
634 p.ListUserProperties(tmp); 634 p.ListUserProperties(tmp);
635 ASSERT_EQ(2u, tmp.size()); 635 ASSERT_EQ(2u, tmp.size());
636 ASSERT_NE(tmp.find("a"), tmp.end()); 636 ASSERT_TRUE(tmp.find("a") != tmp.end());
637 ASSERT_NE(tmp.find("Hello"), tmp.end()); 637 ASSERT_TRUE(tmp.find("Hello") != tmp.end());
638 ASSERT_EQ(tmp.find("hello"), tmp.end()); 638 ASSERT_TRUE(tmp.find("hello") == tmp.end());
639 639
640 std::string s; 640 std::string s;
641 ASSERT_TRUE(p.LookupUserProperty(s, "a")); ASSERT_TRUE(s == "b"); 641 ASSERT_TRUE(p.LookupUserProperty(s, "a")); ASSERT_TRUE(s == "b");
642 ASSERT_TRUE(p.LookupUserProperty(s, "Hello")); ASSERT_TRUE(s == "world"); 642 ASSERT_TRUE(p.LookupUserProperty(s, "Hello")); ASSERT_TRUE(s == "world");
643 ASSERT_FALSE(p.LookupUserProperty(s, "hello")); 643 ASSERT_FALSE(p.LookupUserProperty(s, "hello"));