v20160618 FrontPage.BuyMilk 4 4 0 0 2016-07-16T10:39:12+01:00 236 <br/><table> <tr> <td colspan="4"><span class="pass">should I buy milk</span></td> </tr> <tr> <td>cash in wallet</td> <td>credit card</td> <td>pints of milk remaining</td> <td>go to store?</td> </tr> <tr> <td>0</td> <td>no</td> <td>0</td> <td><span class="pass">no</span></td> </tr> <tr> <td>10</td> <td>no</td> <td>0</td> <td>[<span class="diff">no</span>] <span class="fail">expected [</span><span class="diff">yes</span><span class="fail">]</span></td> </tr> <tr> <td>0</td> <td>yes</td> <td>0</td> <td>[<span class="diff">no</span>] <span class="fail">expected [</span><span class="diff">yes</span><span class="fail">]</span></td> </tr> <tr> <td>10</td> <td>yes</td> <td>0</td> <td>[<span class="diff">no</span>] <span class="fail">expected [</span><span class="diff">yes</span><span class="fail">]</span></td> </tr> <tr> <td>0</td> <td>no</td> <td>1</td> <td><span class="pass">no</span></td> </tr> <tr> <td>10</td> <td>no</td> <td>1</td> <td><span class="pass">no</span></td> </tr> <tr> <td>0</td> <td>yes</td> <td>1</td> <td><span class="pass">no</span></td> </tr> <tr> <td>10</td> <td>yes</td> <td>1</td> <td>[no] <span class="fail">expected [no</span><span class="diff">pe</span><span class="fail">]</span></td> </tr> </table> BuyMilk {id='decisionTable_0_0', instruction='make', instanceName='decisionTable_0', className='ShouldIBuyMilk', args=[]} pass(should I buy milk) pass decisionTable_0_0 0 0 ConstructionExpectation should I buy milk {id='decisionTable_0_4', instruction='call', instanceName='decisionTable_0', methodName='setCashInWallet', args=[0]} decisionTable_0_4 0 2 VoidReturnExpectation {id='decisionTable_0_5', instruction='call', instanceName='decisionTable_0', methodName='setCreditCard', args=[no]} decisionTable_0_5 1 2 VoidReturnExpectation {id='decisionTable_0_6', instruction='call', instanceName='decisionTable_0', methodName='setPintsOfMilkRemaining', args=[0]} decisionTable_0_6 2 2 VoidReturnExpectation {id='decisionTable_0_8', instruction='call', instanceName='decisionTable_0', methodName='goToStore', args=[]} pass(no) pass decisionTable_0_8 3 2 ReturnedValueExpectation no {id='decisionTable_0_10', instruction='call', instanceName='decisionTable_0', methodName='setCashInWallet', args=[10]} decisionTable_0_10 0 3 VoidReturnExpectation {id='decisionTable_0_11', instruction='call', instanceName='decisionTable_0', methodName='setCreditCard', args=[no]} decisionTable_0_11 1 3 VoidReturnExpectation {id='decisionTable_0_12', instruction='call', instanceName='decisionTable_0', methodName='setPintsOfMilkRemaining', args=[0]} decisionTable_0_12 2 3 VoidReturnExpectation {id='decisionTable_0_14', instruction='call', instanceName='decisionTable_0', methodName='goToStore', args=[]} fail(a=no;e=yes) fail decisionTable_0_14 3 3 ReturnedValueExpectation no yes {id='decisionTable_0_16', instruction='call', instanceName='decisionTable_0', methodName='setCashInWallet', args=[0]} decisionTable_0_16 0 4 VoidReturnExpectation {id='decisionTable_0_17', instruction='call', instanceName='decisionTable_0', methodName='setCreditCard', args=[yes]} decisionTable_0_17 1 4 VoidReturnExpectation {id='decisionTable_0_18', instruction='call', instanceName='decisionTable_0', methodName='setPintsOfMilkRemaining', args=[0]} decisionTable_0_18 2 4 VoidReturnExpectation {id='decisionTable_0_20', instruction='call', instanceName='decisionTable_0', methodName='goToStore', args=[]} fail(a=no;e=yes) fail decisionTable_0_20 3 4 ReturnedValueExpectation no yes {id='decisionTable_0_22', instruction='call', instanceName='decisionTable_0', methodName='setCashInWallet', args=[10]} decisionTable_0_22 0 5 VoidReturnExpectation {id='decisionTable_0_23', instruction='call', instanceName='decisionTable_0', methodName='setCreditCard', args=[yes]} decisionTable_0_23 1 5 VoidReturnExpectation {id='decisionTable_0_24', instruction='call', instanceName='decisionTable_0', methodName='setPintsOfMilkRemaining', args=[0]} decisionTable_0_24 2 5 VoidReturnExpectation {id='decisionTable_0_26', instruction='call', instanceName='decisionTable_0', methodName='goToStore', args=[]} fail(a=no;e=yes) fail decisionTable_0_26 3 5 ReturnedValueExpectation no yes {id='decisionTable_0_28', instruction='call', instanceName='decisionTable_0', methodName='setCashInWallet', args=[0]} decisionTable_0_28 0 6 VoidReturnExpectation {id='decisionTable_0_29', instruction='call', instanceName='decisionTable_0', methodName='setCreditCard', args=[no]} decisionTable_0_29 1 6 VoidReturnExpectation {id='decisionTable_0_30', instruction='call', instanceName='decisionTable_0', methodName='setPintsOfMilkRemaining', args=[1]} decisionTable_0_30 2 6 VoidReturnExpectation {id='decisionTable_0_32', instruction='call', instanceName='decisionTable_0', methodName='goToStore', args=[]} pass(no) pass decisionTable_0_32 3 6 ReturnedValueExpectation no {id='decisionTable_0_34', instruction='call', instanceName='decisionTable_0', methodName='setCashInWallet', args=[10]} decisionTable_0_34 0 7 VoidReturnExpectation {id='decisionTable_0_35', instruction='call', instanceName='decisionTable_0', methodName='setCreditCard', args=[no]} decisionTable_0_35 1 7 VoidReturnExpectation {id='decisionTable_0_36', instruction='call', instanceName='decisionTable_0', methodName='setPintsOfMilkRemaining', args=[1]} decisionTable_0_36 2 7 VoidReturnExpectation {id='decisionTable_0_38', instruction='call', instanceName='decisionTable_0', methodName='goToStore', args=[]} pass(no) pass decisionTable_0_38 3 7 ReturnedValueExpectation no {id='decisionTable_0_40', instruction='call', instanceName='decisionTable_0', methodName='setCashInWallet', args=[0]} decisionTable_0_40 0 8 VoidReturnExpectation {id='decisionTable_0_41', instruction='call', instanceName='decisionTable_0', methodName='setCreditCard', args=[yes]} decisionTable_0_41 1 8 VoidReturnExpectation {id='decisionTable_0_42', instruction='call', instanceName='decisionTable_0', methodName='setPintsOfMilkRemaining', args=[1]} decisionTable_0_42 2 8 VoidReturnExpectation {id='decisionTable_0_44', instruction='call', instanceName='decisionTable_0', methodName='goToStore', args=[]} pass(no) pass decisionTable_0_44 3 8 ReturnedValueExpectation no {id='decisionTable_0_46', instruction='call', instanceName='decisionTable_0', methodName='setCashInWallet', args=[10]} decisionTable_0_46 0 9 VoidReturnExpectation {id='decisionTable_0_47', instruction='call', instanceName='decisionTable_0', methodName='setCreditCard', args=[yes]} decisionTable_0_47 1 9 VoidReturnExpectation {id='decisionTable_0_48', instruction='call', instanceName='decisionTable_0', methodName='setPintsOfMilkRemaining', args=[1]} decisionTable_0_48 2 9 VoidReturnExpectation {id='decisionTable_0_50', instruction='call', instanceName='decisionTable_0', methodName='goToStore', args=[]} fail(a=no;e=nope) fail decisionTable_0_50 3 9 ReturnedValueExpectation no nope 0 1 0 0 236