Tests/Activity/TurtleArt Boolean Logic 1

From OLPC

< Tests
Revision as of 01:31, 17 March 2012 by Pancake Batter (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
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 1
How to report results

Stream
Category Activity Sub-category TurtleArt
Component TurtleArt
Feature http://wiki.laptop.org/go/Turtleart
Objective Tests 'Greater Than', 'Less Than' and 'Equals' functional 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):
  1. Click the 'clean' button at the top of the screen.
  2. Drag the specified block-under-test into the 'if' block's condition area.
  3. Drag a 'number' field into the left position of block-under-test and set it to the value specified by the test (Left).
  4. Drag a 'number' field into the right position of block-under-test and set it to the value specified by the test (Right).
  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:

#LeftRight
[Equal]
1.-999-999
2.234234
3.00
[Left > Right]
4.-34-56
5.0-56
6.23-56
7.230
8.233
[Left < Right]
9.-78-34
10.-780
11.-7811
12.011
13.411
Expected Results
and Pass Criteria
--
Block'Equal' Partition'Left > Right' Partition'Left < Right' Partition
">" down up down
"<" down down up
"=" up down down
Comments Rationale:
  • The inputs are chosen from the equivalence partition { Negative, Zero, Positive }
  • Input combinations were chosen to give a variety of outputs, for each partition. Boundary values are also tested.
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 blocks exhibit the expected behavior 2009/03/29


Facts about Tests/Activity/TurtleArt Boolean Logic 1RDF feed
Build number 45  +
Build stream warning.png"" cannot be used as a page name in this wiki.
Comments All blocks exhibit the expected behavior
Created 29 March 2009  +
More notes Rationale:
  • The inputs are chosen from the equivalence partition { Negative, Zero, Positive }
  • Input combinations were chosen to give a variety of outputs, for each partition. Boundary values are also tested.
Pass criteria --

<table border="1" cellspacing="0"&gt -- <table border="1" cellspacing="0"> <tr><th>Block</th><th>'Equal' Partition</th><th>'Left > Right' Partition</th><th>'Left < Right' Partition</th></tr> <tr><td>">" </td><td>down </td><td>up </td><td>down</td></tr> <tr><td>"<" </td><td>down </td><td>down </td><td>up</td></tr> <tr><td>"=" </td><td>up </td><td>down </td><td>down</td></tr> </table> ;down</td></tr>

</table>
PassFail Pass  +
Short name Boolean Logic 1  +
Software release 8.2.0 (767)  +
System component TurtleArt  +
System feature http://wiki.laptop.org/go/Turtleart  +
Test category Activity  +
Test objective Tests 'Greater Than', 'Less Than' and 'Equals' functional blocks.  +
Test procedure Test Procedure (repeat for all test values Test Procedure (repeat for all test values below):
  1. Click the 'clean' button at the top of the screen.
  2. Drag the specified block-under-test into the 'if' block's condition area.
  3. Drag a 'number' field into the left position of block-under-test and set it to the value specified by the test (Left).
  4. Drag a 'number' field into the right position of block-under-test and set it to the value specified by the test (Right).
  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 width="80">Left</th><th width="80">Right</th></tr> <tr><td colspan="3">[Equal]</td></tr> <tr><td>1.</td><td>-999</td><td>-999</td></tr> <tr><td>2.</td><td>234</td><td>234</td></tr> <tr><td>3.</td><td>0</td><td>0</td></tr>

<tr><td colspan="3">[Left > Right]</td></tr> <tr><td>4.</td><td>-34</td><td>-56</td></tr> <tr><td>5.</td><td>0</td><td>-56</td></tr> <tr><td>6.</td><td>23</td><td>-56</td></tr> <tr><td>7.</td><td>23</td><td>0</td></tr> <tr><td>8.</td><td>23</td><td>3</td></tr>

<tr><td colspan="3">[Left < Right]</td></tr> <tr><td>9.</td><td>-78</td><td>-34</td></tr> <tr><td>10.</td><td>-78</td><td>0</td></tr> <tr><td>11.</td><td>-78</td><td>11</td></tr> <tr><td>12.</td><td>0</td><td>11</td></tr> <tr><td>13.</td><td>4</td><td>11</td></tr> </table> gt;11</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