|
|
Line 1: |
Line 1: |
|
|
'''This page is obsolete. The information has been merged into [http://wiki.laptop.org/go/Tests/Activity/TurtleArt].''' {{delete}}{{deprecated}} |
|
|
|
|
{{Test case |
|
{{Test case |
|
|testcase_name=Boolean Logic 1 |
|
|testcase_name=Boolean Logic 1 |
Latest revision as of 01:31, 17 March 2012
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 'Greater Than', 'Less Than' and 'Equals' functional 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):
- Click the 'clean' button at the top of the screen.
- Drag the specified block-under-test into the 'if' block's condition area.
- Drag a 'number' field into the left position of block-under-test and set it to the value specified by the test (Left).
- Drag a 'number' field into the right position of block-under-test and set it to the value specified by the test (Right).
- Run the sequence.
- The turtle should move either up or down. Make sure the direction of movement matches the expected direction.
Test Values:
# | Left | Right |
[Equal] |
1. | -999 | -999 |
2. | 234 | 234 |
3. | 0 | 0 |
[Left > Right] |
4. | -34 | -56 |
5. | 0 | -56 |
6. | 23 | -56 |
7. | 23 | 0 |
8. | 23 | 3 |
[Left < Right] |
9. | -78 | -34 |
10. | -78 | 0 |
11. | -78 | 11 |
12. | 0 | 11 |
13. | 4 | 11 |
]]
|
Expected Results and Pass Criteria
|
[[Pass criteria::--
Block | 'Equal' Partition | 'Left > Right' Partition | 'Left < Right' Partition |
">" | down | up | down |
"<" | down | down | up |
"=" | up | down | down |
]]
|
Comments
|
[[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.]]
|
|