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::
|