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
- 平均合并
- 2 小时 49 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 83/100
taskforcesh/bullmq#5238 ·
维护者通常 1 天内回复
-
[Bug] v-change-database-password reports success but doesn't change the password when MySQL validate_password rejects it可能已有人在做 @bfs2021 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
Automattic/jetpack#55517 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 84/100
-
area/import type/enhancement when/later
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复