elliotchance / elliotchance/concise

Modifiers for counting matches in strings

Open
#260 0 comments 0 reactions 0 assignees View on GitHub
Component: Matcher Size: 2 (Medium) Type: Feature
Dominant language
PHP
Stars
45
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Count when a string or reggae appears a certain amount of times, this can be nested like:

``` php
$this->assert($this->assert('foo foo', contains_string, 'foo'), appears_twice);
```

`appears twice` is a synonym for `equals 2`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the assertion and modifier parsing entry points in the Concise repository, then inspect existing tests for string matching and comparison synonyms. Implement the requested nested counting behavior and verify that the shown example and the “appears twice” synonym are covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.