Float value in SLIM query table comparison
问题 I am fairly new to Fitnesse. I am using the Subset Query Table. It works fine except when I have to compare a float value. Is there a any way I can compare the values to certain level of accuracy ? For instance the test should pass when I compare 4.12 to 4.1234. But right now, it looks like it is making a string comparison and it fails. Is there anyway I can override the validation part ? 回答1: You can use the tilde character to mean 'approximately equal to', e.g. ~=4.12 See http://fitnesse