Suggestion: Add assertion that an array element is *before* another
还没有人认领这个 Issue。
评估
调研方向
首先在 repository 中定位现有的数组断言方法及其测试。使用 issue 中的 ['apple', 'orange'] 示例来明确预期的顺序断言,包括方法应如何命名,以及任一元素缺失时会发生什么。完成的标准是:新的断言有测试覆盖,并支持检查一个数组元素是否排在另一个元素之前。
由索引模型根据 Issue 内容生成。
描述
Sometimes I'd need a method to assert that in an array, one element comes before another. E.g. when testing things like search functions, where the order does matter.
Right now I'm using some lengthy workaround. But something like this would be nicer:
$searchresults = ['apple', 'orange'];
$I->assertIsBeforeInArray('apple', 'orange'); // I need to think about the function's name some more... ;-)
- 主要语言
- PHP
- 星标
- 105
- 派生
- 5
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
相似的 Issue
-
status/awaiting_triage
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 1/5 1 小时以内 新手友好度 90/100
WordPress/plugin-check#1486 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 88/100
az-digital/az_quickstart#6019 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
grokability/snipe-it#19688 ·
-
难度 2/5 1-3 小时 新手友好度 85/100