知识卡片
性质测试不能证明无限输入命题
性质描述满足前提的输入应有某种输出特征,如JSON合法;用生成样本扩大检查覆盖。有限执行通常不是对所有输入的数学证明,格式性质也不保证字段含义或事实正确。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · 模型自动化测试
原书出处 · 1 处
- · 查看原书依据
Property-based tests Instead of testing for a specific output, property-based tests check for certain properties or characteristics in the output. You do so by specifying statements that should always be true, rather than relying on specific examples. These statements take the form: “for all inputs that satisfy some precondition, the output satisfies a specified criteria.” For example, if you are using an LLM to parse
参考来源
- 位置:《Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)》第06章《模型自动化测试》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)/_epub-src/OEBPS/ch06.html)
- 结论依据:摘录中关于性质测试不能证明无限输入命题的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:Property-based tests Instead of testing for a specific output, property-based tests check for certain properties or characteristics in the output. You do so by specifying statements that should always be true, rather than relying on specific examples. These statements take the form: “for all inputs that satisfy some precondition, the output satisfies a specified criteria.” For example, if you are using an LLM to parse