1 line
713 B
JSON
1 line
713 B
JSON
[{"name":"prod-pow","repo":"work/prod-repo","task":"在 features/ 新建 pow_feature.py,实现 pow_calc(a, b) 返回 a**b;在 tests/ 新建 test_pow.py,用 unittest 覆盖正常值和 0 次幂;跑 python3 -m unittest discover -s tests -v,全部通过才算完成。不要改 core.py、tests/test_core.py 和其他功能文件。"},{"name":"prod-mod","repo":"work/prod-repo","task":"在 features/ 新建 mod_feature.py,实现 mod_calc(a, b) 返回 a%b,b 为 0 时抛出 ValueError;在 tests/ 新建 test_mod.py,用 unittest 覆盖正常值和 b=0 抛错;跑 python3 -m unittest discover -s tests -v,全部通过才算完成。不要改 core.py、tests/test_core.py 和其他功能文件。"}] |