Add contains()
@schwern is already working on this.
Since Oct 27, 2016.
Assessment
This issue has not been assessed yet.
Description
is() says "what we got is exactly what we expect".
contains() says "what we got contains what we expect".
is [1,2,3,4], [2,3]; # fail
contains [1,2,3,4], [2,3]; # pass
is "foofer", "oof"; # fail
contains "foofer", "oof"; # pass
The idea is to provide a DSL like is and like where the difference in behavior between the two are clearly understood. is and contains should differ in just one specific way: one is an equality check, the other is a match.
There are plenty of open questions about how this should work and how far it should go.
See Test-More/Test2-Suite#63 for background.
- Dominant language
- Perl
- Stars
- 149
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Test-More/test-more
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
All issues in Test-More/test-more
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
stfc/cloud-image-builders#218 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
0.kind: bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Role::Serializer: class-method deserialize failure raises Class::XSAccessor, masking the real error OpenBug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
PerlDancer/Dancer2#1837 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100