Opened 13 years ago
Closed 13 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:
- Power on OLPC
- Click on the calculate icon on home page.
- Click on the Boolean Tab.
- Move the cursor onto the “Logical and” option.
- Click on Help.
- Click on Enter.
- Verify the message displayed on the right side result text box.
- Move the cursor onto the “Logical or” option.
- Click on Help.
- Click on Enter.
- Verify the message displayed on the right side result text box.
Actual Result:
- Displayed error message as “Error at 8: Parse error” when tries to get the answer for Help option of “Logical and”.
- 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 13 years ago by garycmartin
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
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.