 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
John O'Harrow Guest
|
Posted: Thu Dec 21, 2006 8:59 pm Post subject: StrToInt32 Validation |
|
|
Despite the very extensive validation in the StrToInt32 challenge, I have
produced a faulty challenge function which passes validation
The following additional test string needs to be added to the procedure
TMainForm.FillTestSetArray2
Inc(Size);
SetLength(TestSetArray2, Size);
TestSetArray2[Size-1].S := '$2000000000000000';
This detects that functions do not "wrap around" the result as it is built
up internally.
I have a couple of new functions for this challenge which I will upload to
Yahoo shortly.
--
regards,
John
The Fastcode Project:
http://www.fastcodeproject.org/ |
|
| Back to top |
|
 |
Dennis Guest
|
Posted: Thu Dec 21, 2006 9:20 pm Post subject: Re: StrToInt32 Validation |
|
|
Hi
| Quote: | The following additional test string needs to be added to the procedure
TMainForm.FillTestSetArray2
Inc(Size);
SetLength(TestSetArray2, Size);
TestSetArray2[Size-1].S := '$2000000000000000';
|
Good you found the hole. I will fix it imidiately.
| Quote: | I have a couple of new functions for this challenge which I will upload to
Yahoo shortly.
|
Good.
I volunteer to make the release soon.
Best regards
Dennis Kjaer Christensen |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|