Fwd: FogBugz (Case [Issue]19057) CI and Bugtracker - Failing test: SHParserST80Test.testNumberHierarchy

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Fwd: FogBugz (Case [Issue]19057) CI and Bugtracker - Failing test: SHParserST80Test.testNumberHierarchy

Nicolai Hess-3-2
Fraction>>round: numberOfWishedDecimal
    "Round the decimal part of the receiver to be limited to the number of wished decimal. Only leave a fixed amount of decimal"
   < expr: (1/3 round: 2) result: 0.33 >     
    < expr: (111/100 round: 2) result: 1.11 >
   
    ^self asFloat round: numberOfWishedDecimal


this method was changed for case 19034 Improve comment of round: 

But I think
    < expr: (111/100 round: 2) result: 1.11 >
is actually not a valid pragma expression. (Squeak compiler does not allow this).

1. Do we want to allow this syntax ( I don't want)
2. how to express this "example-pragma", use literal arrays instead:
   < expr: #(1/3 round: 2) result: 0.33 >     
or
    <expr: #(1 #/ 3 #round: 2) result: 0.33>

nicolai

---------- Forwarded message ----------
From: Pharo Issue Tracker <[hidden email]>
Date: 2016-09-07 10:45 GMT+02:00
Subject: FogBugz (Case [Issue]19057) CI and Bugtracker - Failing test: SHParserST80Test.testNumberHierarchy
To: "[hidden email]" <[hidden email]>


avatar
Marcus Denker opened Case 19057: Failing test: SHParserST80Test.testNumberHierarchy and assigned it to Everyone:
Bug in Project: CI and Bugtracker: 1. Pharo Image  •  You are subscribed to this case
testNumberHierarchy

is Failing
Priority Priority: 5 – Fix If Time Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Pharo6.0

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want FogBugz notifications anymore? Update your preferences.

FogBugz
A FogBugz case was opened by Marcus Denker. Case ID: 19057 Title: Failing test: SHParserST80Test.testNumberHierarchy Status: Work Needed Category: Bug Project: CI and Bugtracker Area: 1. Pharo Image Priority: 5 - Fix If Time Milestone: Pharo6.0: 3/31/2017 Assigned To: Everyone URL: https://pharo.fogbugz.com/f/cases/19057 testNumberHierarchy is Failing You are subscribed to this case. If you do not want to receive automatic notifications in the future, unsubscribe (https://pharo.fogbugz.com/default.asp?pre=preUnsubscribe&pg=pgEditBug&command=view&ixBug=19057) from this case.

Reply | Threaded
Open this post in threaded view
|

Re: FogBugz (Case [Issue]19057) CI and Bugtracker - Failing test: SHParserST80Test.testNumberHierarchy

Marcus Denker-4

On 07 Sep 2016, at 13:37, Nicolai Hess <[hidden email]> wrote:

Fraction>>round: numberOfWishedDecimal
    "Round the decimal part of the receiver to be limited to the number of wished decimal. Only leave a fixed amount of decimal"
   < expr: (1/3 round: 2) result: 0.33 >     
    < expr: (111/100 round: 2) result: 1.11 >
   
    ^self asFloat round: numberOfWishedDecimal


this method was changed for case 19034 Improve comment of round: 



ups… I did not review correctly. I thought that only the comment changed. Pragmas are not comments...

But I think
    < expr: (111/100 round: 2) result: 1.11 >
is actually not a valid pragma expression. (Squeak compiler does not allow this).

1. Do we want to allow this syntax ( I don't want)

No! This would make the system quite unreadable if you add lots of those everywhere.

Marcus