Tests/Activity/TurtleArt Boolean Logic 2

From OLPC

Jump to: navigation, search

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

  Image:Trashcan.png 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.
Stop hand.png WARNING:
The content of this section is considered
DEPRECATED and OBSOLETE
It 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.
Comments 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.
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'.

  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: <table border="1" cellspacing="0"> <tr><th>#</th><th>Left Truth Value</th><th>Right Truth Value</th><th>Expected Movement Direction</th></tr> <tr><td colspan="4">[AND]</td></tr> <tr><td>1.</td><td>False</td><td>NOT True</td><td>down</td></tr> <tr><td>2.</td><td>True</td><td>False</td><td>down</td></tr> <tr><td>3.</td><td>False</td><td>NOT false</td><td>down</td></tr> <tr><td>4.</td><td>True</td><td>True</td><td>up</td></tr> <tr><td colspan="4">[OR]</td></tr> <tr><td>5.</td><td>False</td><td>NOT True</td><td>down</td></tr> <tr><td>6.</td><td>True</td><td>False</td><td>up</td></tr> <tr><td>7.</td><td>False</td><td>NOT false</td><td>up</td></tr> <tr><td>8.</td><td>True</td><td>True</td><td>up</td></tr> </table> gt;up</td></tr>

</table>
Test 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.
Test subcategory TurtleArt  +
Test tools None  +
Personal tools
  • Log in
  • Login with OpenID
About OLPC
About the laptop
About the tablet
Projects
OLPC wiki
Toolbox