Fitnesse比较声明

时间:2018-03-19 12:48:19

标签: fitnesse

这是否可以比较健身中的两个字符串:

import math

def process(x:float, divisor:int=60) -> float:
"""
Convert a float to its constituent parts. Divide the fractional part by the divisor, and then recombine creating a 'scaled fractional' part,
"""
    b, a = math.modf(x)
    c = a + b/divisor
    return c

df['data'].apply(process)

Out[17]: 
0    28.007833
1    28.007500
2    28.002667
3    28.004833
4    28.006333
5    28.008167
6    28.003500
7    29.000500
8    29.001833
9    28.001833
Name: data=, dtype: float64

!define Str {ABC}

将返回true。

1 个答案:

答案 0 :(得分:1)

不,FitNesse表达式不支持相等运算符。

相关问题