Opened 4 years ago

Closed 4 years ago

#1870 closed defect (fixed)

OLPC-Calculate Activity – Unexpected error message displayed as follows “Error at 8: Parse error” and “Error at 7: Parse error”.

Reported by: Niranjala80 Owned by: rwh
Priority: Normal Milestone: Unspecified
Component: Calculate Version: 0.84.x
Severity: Minor Keywords: OS115
Cc: Distribution/OS: Other (name your distribution in the description)
Bug Status: New

Description

Description:

When I click on “Help” Option of “Logical and” and enter, it gives,

help(and))
Error at 8: Parse error

It should be the Definition of the “Logical and” function.

Similarly,
When I click on “Help” Option of “Logical or” and enter, it gives,

help(or)
Error at 7: Parse error

It should be the Definition of the “Logical or” function.

Steps to recreate the defect:

  1. Power on OLPC
  2. Click on the calculate icon on home page.
  3. Click on the Boolean Tab.
  4. Move the cursor onto the “Logical and” option.
  5. Click on Help.
  6. Click on Enter.
  7. Verify the message displayed on the right side result text box.
  8. Move the cursor onto the “Logical or” option.
  9. Click on Help.
  10. Click on Enter.
  11. Verify the message displayed on the right side result text box.

Actual Result:

  1. Displayed error message as “Error at 8: Parse error” when tries to get the answer for Help option of “Logical and”.
  2. Displayed error message as “Error at 7: Parse error” when tries to get the answer for Help option of “Logical or”.

Expected Result:

The definition of the “Logical and” and the definition of the “Logical or”.

Tested Environment:
OS: Sugar and GNOME (Dual boot)
Machine Type: XO 1.5
Build: OS 115
Firmware: Q3A35

Change History (1)

comment:1 Changed 4 years ago by garycmartin

  • Resolution set to fixed
  • Status changed from new to closed

Fixed with git commit 5762cc5b, these help strings are case sensitive, And/Or, and had one bracket typo. I didn't change the help strings but they Could be better as you can use the function or an infix operator And(x,y), x&y, Or(x,y), x|y. Clicking the toolbar buttons inserts & and | which are more generally useful as you can easily chain a set of tests.

Note: See TracTickets for help on using tickets.