Home | History | Annotate | Download | only in strings

Lines Matching refs:result

66   string result;
77 result = tensorflow::strings::StrCat(false, true, 2, 3);
78 EXPECT_EQ(result, "0123");
80 result = tensorflow::strings::StrCat(-1);
81 EXPECT_EQ(result, "-1");
83 result = tensorflow::strings::StrCat(0.5);
84 EXPECT_EQ(result, "0.5");
86 result = tensorflow::strings::StrCat(strs[1], pieces[2]);
87 EXPECT_EQ(result, "CruelWorld");
89 result = tensorflow::strings::StrCat(strs[0], ", ", pieces[2]);
90 EXPECT_EQ(result, "Hello, World");
92 result =
94 EXPECT_EQ(result, "Hello, Cruel World!");
96 result =
98 EXPECT_EQ(result, "Hello, Cruel World");
100 result =
102 EXPECT_EQ(result, "Hello, Cruel World");
104 result = tensorflow::strings::StrCat("ASCII ", i32s[0], ", ", i32s[1], " ",
106 EXPECT_EQ(result, "ASCII 72, 67 87!");
108 result = tensorflow::strings::StrCat(ui64s[0], ", ", ui64s[1], "!");
109 EXPECT_EQ(result, "12345678910, 10987654321!");
114 result = tensorflow::strings::StrCat("And a ", one.size(), " and a ",
115 &result[2] - &result[0], " and a ", one,
117 EXPECT_EQ(result, "And a 1 and a 2 and a 1 2 3 4!");
119 // result = StrCat("Single chars won't compile", '!');
120 // result = StrCat("Neither will NULLs", NULL);
121 result = tensorflow::strings::StrCat(
123 EXPECT_EQ(result, "To output a char by ASCII/numeric value, use +: 33");
126 result = tensorflow::strings::StrCat("A hundred K and a half is ", f);
127 EXPECT_EQ(result, "A hundred K and a half is 100000.5");
131 result = tensorflow::strings::StrCat("A hundred K and a half squared is ", d);
132 EXPECT_EQ(result, "A hundred K and a half squared is 10000100000.25");
135 result =
137 EXPECT_EQ(result, "Ten thousand seven is approximately 10008");
139 result = tensorflow::strings::StrCat(1, 2, 333, 4444, 55555, 666666, 7777777,
141 EXPECT_EQ(result, "12333444455555666666777777788888888999999999");
145 string result;
147 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a");
148 EXPECT_EQ(result, "123456789a");
149 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b");
150 EXPECT_EQ(result, "123456789ab");
151 result =
153 EXPECT_EQ(result, "123456789abc");
154 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
156 EXPECT_EQ(result, "123456789abcd");
157 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
159 EXPECT_EQ(result, "123456789abcde");
160 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
162 EXPECT_EQ(result, "123456789abcdef");
163 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
165 EXPECT_EQ(result, "123456789abcdefg");
166 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
168 EXPECT_EQ(result, "123456789abcdefgh");
169 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
171 EXPECT_EQ(result, "123456789abcdefghi");
172 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
174 EXPECT_EQ(result, "123456789abcdefghij");
175 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
177 EXPECT_EQ(result, "123456789abcdefghijk");
178 result =
181 EXPECT_EQ(result, "123456789abcdefghijkl");
182 result =
185 EXPECT_EQ(result, "123456789abcdefghijklm");
186 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
189 EXPECT_EQ(result, "123456789abcdefghijklmn");
190 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
193 EXPECT_EQ(result, "123456789abcdefghijklmno");
194 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
197 EXPECT_EQ(result, "123456789abcdefghijklmnop");
198 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
201 EXPECT_EQ(result, "123456789abcdefghijklmnopq");
203 result = tensorflow::strings::StrCat(
208 EXPECT_EQ(result,
213 string result = "existing text";
224 string::size_type old_size = result.size();
225 tensorflow::strings::StrAppend(&result, strs[0]);
226 EXPECT_EQ(result.substr(old_size), "Hello");
228 old_size = result.size();
229 tensorflow::strings::StrAppend(&result, strs[1], pieces[2]);
230 EXPECT_EQ(result.substr(old_size), "CruelWorld");
232 old_size = result.size();
233 tensorflow::strings::StrAppend(&result, strs[0], ", ", pieces[2]);
234 EXPECT_EQ(result.substr(old_size), "Hello, World");
236 old_size = result.size();
237 tensorflow::strings::StrAppend(&result, strs[0], ", ", strs[1], " ", strs[2],
239 EXPECT_EQ(result.substr(old_size), "Hello, Cruel World!");
241 old_size = result.size();
242 tensorflow::strings::StrAppend(&result, pieces[0], ", ", pieces[1], " ",
244 EXPECT_EQ(result.substr(old_size), "Hello, Cruel World");
246 old_size = result.size();
247 tensorflow::strings::StrAppend(&result, c_strs[0], ", ", c_strs[1], " ",
249 EXPECT_EQ(result.substr(old_size), "Hello, Cruel World");
251 old_size = result.size();
252 tensorflow::strings::StrAppend(&result, "ASCII ", i32s[0], ", ", i32s[1], " ",
254 EXPECT_EQ(result.substr(old_size), "ASCII 72, 67 87!");
256 old_size = result.size();
257 tensorflow::strings::StrAppend(&result, ui64s[0], ", ", ui64s[1], "!");
258 EXPECT_EQ(result.substr(old_size), "12345678910, 10987654321!");
263 old_size = result.size();
264 tensorflow::strings::StrAppend(&result, "And a ", one.size(), " and a ",
265 &result[2] - &result[0], " and a ", one,
267 EXPECT_EQ(result.substr(old_size), "And a 1 and a 2 and a 1 2 3 4!");
269 // result = StrCat("Single chars won't compile", '!');
270 // result = StrCat("Neither will NULLs", NULL);
271 old_size = result.size();
273 &result, "To output a char by ASCII/numeric value, use +: ", '!' + 0);
274 EXPECT_EQ(result.substr(old_size),
278 old_size = result.size();
279 tensorflow::strings::StrAppend(&result, "A hundred K and a half is ", f);
280 EXPECT_EQ(result.substr(old_size), "A hundred K and a half is 100000.5");
284 old_size = result.size();
285 tensorflow::strings::StrAppend(&result, "A hundred K and a half squared is ",
287 EXPECT_EQ(result.substr(old_size),
291 old_size = result.size();
292 tensorflow::strings::StrAppend(&result, 1, 22, 333, 4444, 55555, 666666,
294 EXPECT_EQ(result.substr(old_size), "1223334444555556666667777777888888889");
297 old_size = result.size();
299 &result, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, "a", "b", "c", "d", "e", "f", "g",
304 EXPECT_EQ(result.substr(old_size),