[Bugs] #2307 UNSP: Calculate: Help text should not be copied as an answer for the next calculation

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Thu Sep 9 11:49:34 EDT 2010


#2307: Calculate: Help text should not be copied as an answer for the next
calculation
------------------------------------------+---------------------------------
    Reporter:  greenfeld                  |          Owner:  rwh                        
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  Calculate                  |        Version:  0.84.x                     
    Severity:  Unspecified                |       Keywords:                             
Distribution:  OLPC                       |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------
Description changed by greenfeld:

Old description:

> Seen on: OLPC 10.1.2 build 852/Sugar 0.84.16, as well as Fedora 12/Sugar
> 0.86.3
>
> If a user does an action which implies to the calculator that it should
> use the previous result as the first value (such as the "-" sign for a
> negative number), help text should not be copied as a "result" for this
> purpose.
>
> Reproduction:
> 1. Start the Calculate activity.
> 2. Type "help(y)" and press Enter.  You should see that "No help about
> 'y' {is} available" for a "result".
> 3. Press any operand key (+, *, -, etc.)
>
> Expected Action: The GUI should be smart enough to know that "No help
> about 'y' {is} available", so it should not try to run a calculation with
> that unless we are going to support string operations on such strings.
>
> Actual Action: The help text is copied to the entry line and then the
> operand is appended, which makes no sense for calculation purposes.

New description:

 Seen on: OLPC 10.1.2 build 852/Sugar 0.84.16, as well as Fedora 12/Sugar
 0.86.3

 If a user does an action which implies to the calculator that it should
 use the previous result as the first value (such as the "-" sign for a
 negative number), help text should not be copied as a "result" for this
 purpose.

 Reproduction:
 1. Start the Calculate activity.
 2. Type "help(y)" and press Enter.  You should see that "No help about 'y'
 {is} available" for a "result".
 3. Press any operand key (+, *, -, etc.)

 Expected Action: The GUI should be smart enough to know that "No help
 about 'y' {is} available" is not a number or other valid calculation
 result, so it should not try to run a calculation with that unless we are
 going to support string operations on such strings.

 Actual Action: The help text is copied to the entry line and then the
 operand is appended, which makes no sense for calculation purposes.

--

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/2307#comment:1>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list