Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unittest: "in" Matcher #3679

Closed
DartBot opened this issue Jun 15, 2012 · 5 comments
Closed

unittest: "in" Matcher #3679

DartBot opened this issue Jun 15, 2012 · 5 comments
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. type-enhancement A request for a change that isn't a bug

Comments

@DartBot
Copy link

DartBot commented Jun 15, 2012

This issue was originally filed by @seaneagan


I think an inverse of the "contains" Matcher would be even more useful, since the Collection/Map/String is more likely the pattern you want to match against. Could call it "in":

Matcher in(container);

//e.g.

expect(x, in([1, 2, 3]));
expect(k, in({"x": 1, "y": 2, "z": 3}));
expect(s, in("xyz"));

@sethladd
Copy link
Contributor

cc @gramster.
Removed Type-Defect label.
Added Type-Enhancement, Area-UnitTest, Triaged labels.

@gramster
Copy link

In r8951
https://chromiumcodereview.appspot.com//10579008


Added Fixed label.

@kevmoo
Copy link
Member

kevmoo commented Feb 12, 2014

Added Pkg-Unittest label.

@kevmoo
Copy link
Member

kevmoo commented Feb 12, 2014

Removed Area-UnitTest label.
Added Area-Pkg label.

@DartBot DartBot added Type-Enhancement area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. labels Feb 12, 2014
@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/test#137.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants