Tests/Activity/TurtleArt Arithmetic: Difference between revisions
< Tests
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
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=Arithmetic |
|testcase_name=Arithmetic |
||
Line 81: | Line 83: | ||
*Addition, Subtraction, Multiplication, Division & Modulo: Values are chosen from the partition class {Negative Real Number, 0.0, Positive Real Number} |
*Addition, Subtraction, Multiplication, Division & Modulo: Values are chosen from the partition class {Negative Real Number, 0.0, Positive Real Number} |
||
*Square Root: Values tested include {-1 (invalid), 0, 1, 4 (integer result), 7 (irrational result)}. These values were selected using Boundary Analysis. |
*Square Root: Values tested include {-1 (invalid), 0, 1, 4 (integer result), 7 (irrational result)}. These values were selected using Boundary Analysis. |
||
}} |
}} |
||
{{Test results begin}} |
{{Test results begin}} |
||
Line 89: | Line 90: | ||
|testresult_passfail=Fail |
|testresult_passfail=Fail |
||
|testresult_comments=Failures: |
|testresult_comments=Failures: |
||
*The test |
*The test cases 27 and 28 (division by zero) silently returns zero as the result, however should raise a #syntaxerror to let the user know that this error has occurred. |
||
*The test |
*The test case 31 (square root of -1) does not show a #syntaxerror. Further investigation found that this operation returns NaN, which causes the turtle to move forwards by NaN in this test setup. The result of this is that the turtle appears to jump to (0, 0) and won’t move again until the ‘clear’ instruction is executed. |
||
|testresult_date=2009/03/29 |
|testresult_date=2009/03/29 |
||
}} |
}} |
Latest revision as of 01:29, 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. |
Test case: Short name::Arithmetic
|