testAsInteger self assert: '1796exportFixes-tkMX' asInteger = 1796. self assert: 'donald' asInteger isNil. self assert: 'abc234def567' asInteger = 234. self assert: '-94' asInteger = -94. self assert: 'foo-bar-92' asInteger = -92
I can tell you that this is stupid but it helps.... I hope that markus will set up the testserver up and running again soon because this would be nice to have it with the unstable stream (thanks markus you are cool).
Stef
"Stéphane" == stéphane ducasse ducasse@iam.unibe.ch writes:
Stéphane> testAsInteger Stéphane> [...] Stéphane> self assert: 'foo-bar-92' asInteger = -92
Note that this one is a semantic change, as previously it would have returned 92. But I think this is a *good* change, although incompatible, and is unlikely to hurt existing code as far as I could see.
Sam
squeak-dev@lists.squeakfoundation.org