Lines Matching refs:EXPECT_EQ
20 EXPECT_EQ(0, parts.size()); in TEST()
23 EXPECT_EQ(1, parts.size()); in TEST()
24 EXPECT_EQ("abc", parts[0]); in TEST()
27 EXPECT_EQ(4, parts.size()); in TEST()
28 EXPECT_EQ("a", parts[0]); in TEST()
29 EXPECT_EQ("bc", parts[1]); in TEST()
30 EXPECT_EQ("d", parts[2]); in TEST()
31 EXPECT_EQ("e", parts[3]); in TEST()
34 EXPECT_EQ(6, parts.size()); in TEST()
35 EXPECT_EQ("a", parts[0]); in TEST()
36 EXPECT_EQ("bc ", parts[1]); in TEST()
37 EXPECT_EQ(" d", parts[2]); in TEST()
38 EXPECT_EQ(" ", parts[3]); in TEST()
39 EXPECT_EQ("e", parts[4]); in TEST()
40 EXPECT_EQ(" ", parts[5]); in TEST()
43 EXPECT_EQ(7, parts.size()); in TEST()
44 EXPECT_EQ("", parts[0]); in TEST()
45 EXPECT_EQ("a", parts[1]); in TEST()
46 EXPECT_EQ("bc", parts[2]); in TEST()
47 EXPECT_EQ("d", parts[3]); in TEST()
48 EXPECT_EQ("", parts[4]); in TEST()
49 EXPECT_EQ("e", parts[5]); in TEST()
50 EXPECT_EQ("", parts[6]); in TEST()
53 EXPECT_EQ(7, parts.size()); in TEST()
54 EXPECT_EQ("", parts[0]); in TEST()
55 EXPECT_EQ("a", parts[1]); in TEST()
56 EXPECT_EQ("bc ", parts[2]); in TEST()
57 EXPECT_EQ(" d", parts[3]); in TEST()
58 EXPECT_EQ(" ", parts[4]); in TEST()
59 EXPECT_EQ("e", parts[5]); in TEST()
60 EXPECT_EQ(" ", parts[6]); in TEST()
63 EXPECT_EQ(2, parts.size()); in TEST()
64 EXPECT_EQ("abc", parts[0]); in TEST()
65 EXPECT_EQ("xyz", parts[1]); in TEST()
68 EXPECT_EQ(3, parts.size()); in TEST()
69 EXPECT_EQ("a", parts[0]); in TEST()
70 EXPECT_EQ("b", parts[1]); in TEST()
71 EXPECT_EQ("c", parts[2]); in TEST()
78 EXPECT_EQ("123", pair.first); in TEST()
79 EXPECT_EQ("4 : 56 : 789", pair.second); in TEST()
82 EXPECT_EQ(" 123 ", pair.first); in TEST()
83 EXPECT_EQ(" 4 : 56 : 789 ", pair.second); in TEST()
86 EXPECT_EQ("", pair.first); in TEST()
87 EXPECT_EQ("", pair.second); in TEST()
90 EXPECT_EQ("", pair.first); in TEST()
91 EXPECT_EQ("", pair.second); in TEST()
94 EXPECT_EQ("a", pair.first); in TEST()
95 EXPECT_EQ("", pair.second); in TEST()
98 EXPECT_EQ("abc", pair.first); in TEST()
99 EXPECT_EQ("", pair.second); in TEST()
102 EXPECT_EQ("", pair.first); in TEST()
103 EXPECT_EQ("a", pair.second); in TEST()
106 EXPECT_EQ("", pair.first); in TEST()
107 EXPECT_EQ("abc=", pair.second); in TEST()
110 EXPECT_EQ("abc", pair.first); in TEST()
111 EXPECT_EQ("", pair.second); in TEST()
114 EXPECT_EQ("abc", pair.first); in TEST()
115 EXPECT_EQ("xyz", pair.second); in TEST()
118 EXPECT_EQ("", pair.first); in TEST()
119 EXPECT_EQ("abc", pair.second); in TEST()
123 EXPECT_EQ("", string_utils::Join(",", {})); in TEST()
124 EXPECT_EQ("abc", string_utils::Join(",", {"abc"})); in TEST()
125 EXPECT_EQ("abc,,xyz", string_utils::Join(",", {"abc", "", "xyz"})); in TEST()
126 EXPECT_EQ("abc,defg", string_utils::Join(",", {"abc", "defg"})); in TEST()
127 EXPECT_EQ("1 : 2 : 3", string_utils::Join(" : ", {"1", "2", "3"})); in TEST()
128 EXPECT_EQ("1:2", string_utils::Join(":", std::set<std::string>{"1", "2"})); in TEST()
129 EXPECT_EQ("1:2", string_utils::Join(":", std::vector<std::string>{"1", "2"})); in TEST()
130 EXPECT_EQ("1:2", string_utils::Join(":", std::list<std::string>{"1", "2"})); in TEST()
131 EXPECT_EQ("123", string_utils::Join("", {"1", "2", "3"})); in TEST()
135 EXPECT_EQ("ab,cd", string_utils::Join(",", "ab", "cd")); in TEST()
136 EXPECT_EQ("key = value", string_utils::Join(" = ", "key", "value")); in TEST()
140 EXPECT_EQ("abc", string_utils::GetBytesAsString({'a', 'b', 'c'})); in TEST()
144 EXPECT_EQ('\xFF', str[0]); in TEST()
145 EXPECT_EQ('\x00', str[1]); in TEST()
146 EXPECT_EQ('\x01', str[2]); in TEST()
147 EXPECT_EQ('\x7F', str[3]); in TEST()
148 EXPECT_EQ('\x80', str[4]); in TEST()
152 EXPECT_EQ((std::vector<uint8_t>{'a', 'b', 'c'}), in TEST()
157 EXPECT_EQ(128, buf[0]); in TEST()
158 EXPECT_EQ(0, buf[1]); in TEST()
159 EXPECT_EQ(1, buf[2]); in TEST()
160 EXPECT_EQ(255, buf[3]); in TEST()