# Tests/Activity/TurtleArt Boolean Logic 2

This page is obsolete. The information has been merged into [1].

 A request has been made for this page to be deleted.If you disagree with its deletion, please explain why on its talk page.Before deleting verify that no links will break.
 WARNING:The content of this section is consideredDEPRECATED and OBSOLETEIt is preserved for historical or documenting reasons.

Test case: Boolean Logic 2
How to report results

Stream
Category Activity Sub-category TurtleArt
Component TurtleArt
Feature http://wiki.laptop.org/go/Turtleart
Objective Tests AND, OR and NOT blocks.
Tools None
Setup --
1. Open the TurtleArt activity.
2. Drag an 'if' block onto the field.
3. Drag a spacer to the 'then' area of the 'if' block.
4. Drag a 'forward' block to the bottom of the spacer.
5. Drag a 'back' block into the 'else' area of the 'if' block.
Procedure 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'.

1. Place the first truth value on the field, into the criteria area of the 'IF' statement.
2. Place the 'AND' or 'OR' block-under-test on the field attached to the right of the first truth value.
3. If the 'NOT' operator is specified by the test, add this immediately into the right side of the logic operator block.
4. Place the second truth value on the field, into the last block added.
5. Run the sequence.
6. 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
Expected Results
and Pass Criteria
The direction of movement by the turtle matches each direction specified in the test values table.
• 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.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test
8.2.0 (767) warning.png"" cannot be used as a page name in this wiki. 45 Pass All logic operators work as expected. 2009/03/29

Facts about Tests/Activity/TurtleArt Boolean Logic 2RDF feed
 Build number 45  + Build stream warning.png"" cannot be used as a page name in this wiki. Comments All logic operators work as expected. Created 29 March 2009  + More notes Rationale: Since these functions take two … 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. outer logic operators without duplication. Pass criteria The direction of movement by the turtle matches each direction specified in the test values table. PassFail Pass  + Short name Boolean Logic 2  + Software release 8.2.0 (767)  + System component TurtleArt  + System feature http://wiki.laptop.org/go/Turtleart  + Test category Activity  + Test objective Tests AND, OR and NOT blocks.  + Test procedure Test Procedure (repeat for all test values … 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
gt;up Test setup -- 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 subcategory TurtleArt  + Test tools None  +