Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 FitNesse 中,变量可以根据其他变量来定义吗?
我想做相当于:
诠释一个= 3; 诠释 b=a;
为了具体说明,我有一个定义日期的变量:
!define clock.date {2/2/2009}
然后我想基于它定义一些其他变量 ${other.date} ,例如:
!define other.date {=${clock.date}=}
但是,这不起作用。有没有办法做到这一点?
当前解析器存在嵌套大括号的问题,因此您可以使用替代语法进行定义:
!define x {东西}
!定义 y (${x})
此限制将很快被删除,您将能够执行 !define y {${x}} 等。