# Edit Test case: Tests/Activity/TurtleArt Boolean Logic 2

##  Test case

 Name of the test case: Activity Boot Journal Network Peripherals SugarControlPanel SugarUI Upgrades XS I18N SmokeTest other joyride staging update.1 ship.2 8.2 8.2.1 10.1 11.2 Any -- #Open the TurtleArt activity. #Drag an 'if' block onto the field. #Drag a spacer to the 'then' area of the 'if' block. #Drag a 'forward' block to the bottom of the spacer. #Drag a 'back' block into the 'else' area of the 'if' block. Test Procedure (repeat for all test values below): For a 'true' block, place an 'Equals' block on the field with the numbers '100' and '100'. For a 'false' block, place an 'Equals' block on the field with the numbers '100' and '1'. #Place the first truth value on the field, into the criteria area of the 'IF' statement. #Place the 'AND' or 'OR' block-under-test on the field attached to the right of the first truth value. #If the 'NOT' operator is specified by the test, add this immediately into the right side of the logic operator block. #Place the second truth value on the field, into the last block added. #Run the sequence. #The turtle should move either up or down. Make sure the direction of movement matches the expected direction. Test Values:
#Left Truth ValueRight Truth ValueExpected Movement Direction
[AND]
1.FalseNOT Truedown
2.TrueFalsedown
3.FalseNOT falsedown
4.TrueTrueup
[OR]
5.FalseNOT Truedown
6.TrueFalseup
7.FalseNOT falseup
8.TrueTrueup
The direction of movement by the turtle matches each direction specified in the test values table. Rationale: *Since these functions take two boolean inputs, it is feasable to test all possible combinations. *A pairwise approach is used to test the 'NOT' operator at the same time: All inputs to 'NOT' are tested while testing the outer logic operators without duplication.

##  Results

Tested Release:

Tested Stream:

Tested Build:

Pass or Fail:

Associated trac tickets:

Today's Date:

Click the button just above this section to add more results.

Free text: