Manuscript (Case [Issue]22548) _Inbox - Typo in FractionTest.class.st

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

Manuscript (Case [Issue]22548) _Inbox - Typo in FractionTest.class.st

Pharo Issue Tracker
Manuscript Notification
avatar
Udo Borkowski opened Case 22548: Typo in FractionTest.class.st and assigned it to Everyone:
Cleanup in Project:  _Inbox: Not Spam  •  You are subscribed to this case
There is a Typo in FractionTest.class.st

An extra '.' in line 4 of FractionTest >> testReadFrom

---
{ #category : #'tests - reading' }
FractionTest >> testReadFrom [
self assert: (Fraction readFromString: '3') = 3 description: 'denominator is optional'.
self assert: (Fraction readFromString: '2/3') = (2/3) description: 'fraction and denominator must follow numerator'.
self assert: (Fraction readFromString: '-2/3') = (-2/3) description: 'numerator can specify a minus sign'.
.self assert: (Fraction readFromString: '2/-5') = (-2/5) description: 'denominator can specify a minus sign'.
self assert: (Fraction readFromString: '-3/-7') = (3/7) description: 'numerator and denominator can both specify a minus sign'.
self assert: (Fraction readFromString: '2e3/3') = (2000/3) description: 'numerator can specify an exponent'.
self assert: (Fraction readFromString: '3/1e4') = (3/10000) description: 'denominator can specify an exponent'.
self assert: (Fraction readFromString: '16rA0/3') = (160/3) description: 'numerator can specify a radix'.
self assert: (Fraction readFromString: '1/3r22') = (1/8) description: 'denominator can specify a radix'.
]
---
Priority Priority: 4 – Would be nice Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Later

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

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

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker