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 considered DEPRECATED and OBSOLETE It is preserved for historical or documenting reasons.
|
Stream
|
,|x|Build stream::x}}
|
Category
|
Test category::Activity
|
Sub-category
|
Test subcategory::TurtleArt
|
Component
|
System component::TurtleArt
|
Feature
|
System feature::http://wiki.laptop.org/go/Turtleart
|
Objective
|
Test objective::Tests AND, OR and NOT blocks.
|
Tools
|
Test tools::None
|
Setup
|
[[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.]]
|
Procedure
|
[[Test 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'.
- 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 Value | Right Truth Value | Expected Movement Direction |
[AND] |
1. | False | NOT True | down |
2. | True | False | down |
3. | False | NOT false | down |
4. | True | True | up |
[OR] |
5. | False | NOT True | down |
6. | True | False | up |
7. | False | NOT false | up |
8. | True | True | up |
]]
|
Expected Results and Pass Criteria
|
Pass criteria::The direction of movement by the turtle matches each direction specified in the test values table.
|
Comments
|
[[More notes::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.]]
|
|