Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

test(evaluators): edge cases for the numeric comparison evaluators

未关闭 适合新手
#381 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@shrinidhi1402 已经在做这个了。

开始于 2026年10月2日。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
84/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
python
领域
testing

调研方向

从 tests/core/evaluators/test_greater_than.py、test_greater_than_equal_to.py、test_less_than.py 和 test_less_than_equal_to.py 开始,然后比较其中现有的整数通过和失败用例。在每个文件中增加对相等值、浮点数、None 输入以及字符串与数字比较的覆盖,同时保持 evaluator 代码不变。在打开 PR 前运行 pytest tests/ 和 black --line-length 120。

由索引模型根据 Issue 内容生成。

描述

good first issue hacktoberfest tests
Problem

test_greater_than.py, test_greater_than_equal_to.py, test_less_than.py and test_less_than_equal_to.py in tests/core/evaluators/ each test one pass and one fail with integers. Nothing covers None, floats, equal values or mixed types, where > raises and the evaluator falls back to the exception message.

What to change

Tests only; no evaluator code changes. If a case exposes a wrong verdict, note it in the PR and we'll open a follow-up.

Done when

Each of the four files covers: equal values, floats, None input, and a string compared with a number.


Comment to claim this issue and wait to be assigned. Unclaimed or inactive for 3 days, it returns to the pool. Run pytest tests/ and black --line-length 120 before opening the PR.

主要语言
Python
星标
167
派生
47
平均合并
1 天 21 小时
30 天内合并 PR
7

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

StackGuardian/tirith 的其他 Issue

查看 StackGuardian/tirith 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。