Lines Matching refs:exps

172     std::vector< std::string > exps;
174 exps = expand_glob("foo", candidates);
175 ATF_REQUIRE_EQ(exps.size(), 1);
176 ATF_REQUIRE(exps[0] == "foo");
178 exps = expand_glob("bar", candidates);
179 ATF_REQUIRE_EQ(exps.size(), 1);
180 ATF_REQUIRE(exps[0] == "bar");
182 exps = expand_glob("foo*", candidates);
183 ATF_REQUIRE_EQ(exps.size(), 4);
184 ATF_REQUIRE(exps[0] == "foo");
185 ATF_REQUIRE(exps[1] == "foobar");
186 ATF_REQUIRE(exps[2] == "foobarbaz");
187 ATF_REQUIRE(exps[3] == "foobarbazfoo");
189 exps = expand_glob("*foo", candidates);
190 ATF_REQUIRE_EQ(exps.size(), 2);
191 ATF_REQUIRE(exps[0] == "foo");
192 ATF_REQUIRE(exps[1] == "foobarbazfoo");
194 exps = expand_glob("*foo*", candidates);
195 ATF_REQUIRE_EQ(exps.size(), 4);
196 ATF_REQUIRE(exps[0] == "foo");
197 ATF_REQUIRE(exps[1] == "foobar");
198 ATF_REQUIRE(exps[2] == "foobarbaz");
199 ATF_REQUIRE(exps[3] == "foobarbazfoo");
201 exps = expand_glob("ba", candidates);
202 ATF_REQUIRE_EQ(exps.size(), 0);
204 exps = expand_glob("ba*", candidates);
205 ATF_REQUIRE_EQ(exps.size(), 2);
206 ATF_REQUIRE(exps[0] == "bar");
207 ATF_REQUIRE(exps[1] == "baz");
209 exps = expand_glob("*ba", candidates);
210 ATF_REQUIRE_EQ(exps.size(), 0);
212 exps = expand_glob("*ba*", candidates);
213 ATF_REQUIRE_EQ(exps.size(), 5);
214 ATF_REQUIRE(exps[0] == "bar");
215 ATF_REQUIRE(exps[1] == "baz");
216 ATF_REQUIRE(exps[2] == "foobar");
217 ATF_REQUIRE(exps[3] == "foobarbaz");
218 ATF_REQUIRE(exps[4] == "foobarbazfoo");
244 std::vector< std::string > exps;
246 exps = expand_glob("t_*", candidates);
247 ATF_REQUIRE_EQ(exps.size(), 3);
248 ATF_REQUIRE(exps[0] == "t_foo");
249 ATF_REQUIRE(exps[1] == "t_bar");
250 ATF_REQUIRE(exps[2] == "t_baz");
252 exps = expand_glob("*_test", candidates);
253 ATF_REQUIRE_EQ(exps.size(), 3);
254 ATF_REQUIRE(exps[0] == "foo_test");
255 ATF_REQUIRE(exps[1] == "bar_test");
256 ATF_REQUIRE(exps[2] == "baz_test");