BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

StrToInt32 Validation

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Language BASM
View previous topic :: View next topic  
Author Message
John O'Harrow
Guest





PostPosted: Thu Dec 21, 2006 8:59 pm    Post subject: StrToInt32 Validation Reply with quote



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





PostPosted: Thu Dec 21, 2006 9:20 pm    Post subject: Re: StrToInt32 Validation Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Language BASM All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.