Add contains()

Open
#989 0 comments 0 reactions 1 assignee View on GitHub

@schwern is already working on this.

Since Oct 27, 2016.

Assessment

This issue has not been assessed yet.

Description

enhancement Question

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Test-More/test-more

All issues in Test-More/test-more

Similar issues

More Perl issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.