Tests/Activity/TurtleArt Arithmetic

From OLPC
< Tests
Revision as of 09:08, 29 March 2009 by Pwm2 (talk | contribs) (New page: {{Test case |testcase_setup=-- #Open the TurtleArt activity. #Drag a 'forward' block onto the field and remove it's value by dragging it onto the toolbox. #Connect another 'forward' block ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Test case: Short name::
How to report results

Stream ,|x|Build stream::x}}
Category [[Test category::{{{testcase_category}}}]] Sub-category [[Test subcategory::{{{testcase_subcategory}}}]]
Component System component::
Feature System feature::
Objective Test objective::
Tools Test tools::
Setup [[Test setup::--
  1. Open the TurtleArt activity.
  2. Drag a 'forward' block onto the field and remove it's value by dragging it onto the toolbox.
  3. Connect another 'forward' block immediately below the first 'forward' block. Leave its value as 100.
  4. Connect a 'print' block immediately below the last 'forward' block.
  5. Place a 'ycor' value in the print block.]]
Procedure [[Test procedure::Test Procedure (repeat for all test values below):
  1. Click the 'clean' button at the top of the screen.
  2. Connect the math function under test to the input of the first 'forward' statement.
  3. Change the default values to the values specified by the test.
  4. Run the sequence.
  5. Make sure the value printed to the output matches the expected value.
  6. In all cases, the turtle must have moved upwards, be at the upmost position of the drawn line and facing upwards.

Test Values:

#Top ValueBottom ValueExpected Result
[Addition]
1.23.212.3135.5
2.-32.42.870.4
3.5.6-9.895.8
4.-07-291.0
5.0.03.5103.5
6.4.60.0104.6
7.0.00.0100.0
[Subtraction]
8.23.212.3 110.9
9.-32.42.8 64.8
10.5.6-9.8115.4
11.-07-295.0
12.0.03.596.5
13.4.60.0104.6
14.0.00.0100.0
[Multiplication]
15.2.22104.4
16.-2.4392.8
17.5-9.851.0
18.-07-2114.0
19.0.03.5100.0
20.-4.60.0100.0
21.0.00.0100.0
[Division]
22.2.22101.1
23.-2.4399.2
24.5-9.899.4
25.-07-2103.5
26.0.03.5100.0
27.-4.60.0Error message
28.0.00.0Error message
[Modulo Values]
29.188102.0
30.-2.43100.6
31.5-9.895.2
32.-07-299.0
33.0.03.5100.0
34.-4.60.0Error message
35.0.00.0Error message
[Square Root Values]
36.-1 Error message
37.0 100.0
38.1 101.0
39.4 102.0
40.7 102.6
]]
Expected Results
and Pass Criteria
Pass criteria::
Comments More notes::
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test