什么是谓词?(What is a predicate?)
作为一名业余爱好者,我缺乏一些基础知识。 在过去的几天里,我一直在阅读一些东西,“谓词”一词不断重现。 我非常感谢关于这个问题的解释。
Being a hobbyist coder, I'm lacking some fundamental knowledge. For the last couple days I've been reading some stuff and the word "predicate" keeps reappearing. I'd very much appreciate an explanation on the subject.
最满意答案
一个谓词的定义,可以在这里在各种来源在线查找:
一个逻辑表达式,其计算结果为TRUE或FALSE,通常用于指导代码中的执行路径。
参考: 软件测试。 马修·海登
The definition of a predicate, which can be found online in various sources such as here, is:
A logical expression which evaluates to TRUE or FALSE, normally to direct the execution path in code.
Referencing: Software Testing. By Mathew Hayden
更多推荐
发布评论