【发布时间】:2013-10-11 20:22:12
【问题描述】:
this Spock wiki page 中有涉及双右箭头运算符 (>>) 的代码 sn-ps。例如:
setup:
subscriber.isAlive() >> true
那么,在这种情况下,>> 运算符是什么意思?非常感谢。
【问题讨论】:
this Spock wiki page 中有涉及双右箭头运算符 (>>) 的代码 sn-ps。例如:
setup:
subscriber.isAlive() >> true
那么,在这种情况下,>> 运算符是什么意思?非常感谢。
【问题讨论】:
右移 (>>) 运算符定义存根方法的返回值或行为。您可以在reference documentationStubbing 下找到更多信息。
【讨论】: