fitSharp
Compute Fixture
The Compute Fixture checks the results of a function.

The second row of a Compute Fixture table is a header row: the last cell is the name of a function and the other cells are the names of the function parameters. The subsequent rows contain input values for the parameters and the expected value of the function's result. The Compute Fixture uses the enclosing fixture as a Domain Adapter to perform the requested function.

when input is
story test fixture
checkplain test'sample class two'

|compute
input 'method with parms'
x samplex
y sampley

|'sample do'
compute
x y dividefloat
1.32 1.1 1.2
sample class two

compute
input method with parms
x samplex
y sampley

sample do
compute
x y dividefloat
1.32 1.1 1.2
'sample class two'

|compute
input 'method with parms'
x samplex
y sampley

|'sample do'
compute
x y dividefloat
1.32 1.1 1.2
then output is
sample class two

compute
input method with parms
x samplex
y sampley

sample do
compute
x y dividefloat
1.32 1.1 1.2
Copyright © 2022 Syterra Software Inc. All rights reserved.