Sha256: f2a3a48bfa9c334433fee8ec5b7f261ff20ec7c3cdf05c0a764ef13bb5adb0b4

Contents?: true

Size: 805 Bytes

Versions: 8

Compression:

Stored size: 805 Bytes

Contents

!3 Numerical Comparisons
You can use relational comparisons for the numeric values in your table cells.

|DT:Some Decision Table|
|input|output?|
|3|<5|
|5|>=3|
|8|3<_<9|

You can use all the normal operators: <, >, <=, >=, !=.

The ''~='' relational operator means ''approximately equal''.  It applies to floating point numbers.  So if ''~=3.0'' then the ''3.0'' sets the precision so that 2.95 or 3.049 will both show equality.  It is the number of decimals on the right side of the operator that determines the precision.

So 2.5~=3 but 2.5 is not ~= 3.0.

!3 Regular Expression Comparisons
You can match regular expressions by using the syntax =~/''regex''/.  For example:

|check|echo|Bob|=~/Bob/|
|check|echo|My name is Bob."|=~/B.b/|

The regular expression syntax is the '''Java''' standard.  



Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xcfit-0.9.0 XCFitDemo/FitNesseRoot/FitNesse/UserGuide/WritingAcceptanceTests/SliM/ValueComparisons/content.txt
xcfit-0.8.0 XCFitDemo/FitNesseRoot/FitNesse/UserGuide/WritingAcceptanceTests/SliM/ValueComparisons/content.txt
xcfit-0.7.0 XCFitDemo/FitNesseRoot/FitNesse/UserGuide/WritingAcceptanceTests/SliM/ValueComparisons/content.txt
xcfit-0.6.0 XCFitDemo/FitNesseRoot/FitNesse/UserGuide/WritingAcceptanceTests/SliM/ValueComparisons/content.txt
xcfit-0.5.0 XCFitDemo/FitNesseRoot/FitNesse/UserGuide/WritingAcceptanceTests/SliM/ValueComparisons/content.txt
xcfit-0.4.0 XCFitDemo/FitNesseRoot/FitNesse/UserGuide/WritingAcceptanceTests/SliM/ValueComparisons/content.txt
xcfit-0.3.0 XCFitDemo/FitNesseRoot/FitNesse/UserGuide/WritingAcceptanceTests/SliM/ValueComparisons/content.txt
xcfit-0.2.0 XCFitDemo/FitNesseRoot/FitNesse/UserGuide/WritingAcceptanceTests/SliM/ValueComparisons/content.txt