Find Jobs
Hire Freelancers

Conversion of HTML pages to Delphi unit tests - 26/04/2018 05:47 EDT

$30-250 USD

Completed
Posted about 6 years ago

$30-250 USD

Paid on delivery
I like to have the Delphi code examples of the website DelphiBasics: [login to view URL] as a kind of DUnit test cases. The exact specification follows below. The work should be done automatically with an according Perl or Python script. Delphi knowledge isn't necessary but advisable. You can download a hand made example, which I made from [login to view URL] I explain the desired specification with this example. 1. at the upper right corner of [login to view URL] there is an index: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z $ For each letter a list of examples for Delphi keywords is shown. For each referenced page a delphi test unit shall be created. 2. The name of the unit shall be the name of the example in lower case with the prefix "dbsc_". E.g. "Array" -> "dbsc_array". 3. Every unit test has to start with the following 5 lines, but with the according keyword instead of "array": -------- unit dbsc_array; //[login to view URL] interface function ArrayTest: boolean; implementation --------- 4. On the array page you see the green block with the text: Example code : Declaring and using static arrays Such green blocks, beginning with the words "Example code", become the start of a test function. The functions have to be numbered. In the example: ------- function ArrayTest1: boolean; -------- 5. The following block with code has to be copied into the unit test file. -------- var // Define static arrays wordArray : Array[Word] of Integer; // Static, size=High(Word) ... --------- 6. The following green block quotes an expected output. This also has to be copied into the unit test file and it has to be put into curly brackets: --------- { wordArray length = 65536 wordArray lowest element = 0 ... } ---------- 7. At the bottom of the produced unit test, a complete test function has to be written, where all function hitherto have to be called: ---------- function ArrayTest: boolean; begin result := true; result := result and ArrayTest1; result := result and ArrayTest2; result := result and ArrayTest3; end; end. ---------- This is only the first step of the conversion to unit tests. Maybe that there will be a second job to complete it. But that job would require Delphi knowledge.
Project ID: 16785473

About the project

3 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi I can make a Perl script to generate the unit tests from html pages ________________________________________________________________________
$166 USD in 3 days
5.0 (56 reviews)
6.7
6.7
3 freelancers are bidding on average $82 USD for this job
User Avatar
With 9 years of experience in Python(Scraping, Automation) I’m confident I can complete this project...
$50 USD in 2 days
5.0 (1 review)
0.3
0.3

About the client

Flag of GERMANY
Hamburg, Germany
5.0
3
Payment method verified
Member since Jun 20, 2009

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.