Set up the minunit test framework - mortgage code, Computer Engineering

Set up the minunit test framework examples in your environment (i.e. build or compile the code). Once you can run the example, use the minunit test framework to create and run a boundary or equivalence partition test cases on the Mortgage example from class.

The code snippet from the class is on the scratch drive. Note that you may have to add some headers and other information to the basic snippet in order for it to compile properly.

The Mortgage code snippet should be a separate module (file) that needs to be compiled only once and then linked with your test case framework and test cases mainline.

Submit to perforce, the source code your created (mortgage module, test case mainline,...), a tar or zip of a working framework, the test mainline executable and a short test plan results document showing the cases you tested, and the results of the testing. The test cases could be the ones that you created for the in class assignment or similar ones for equivalence partitioning. Don't go overboard with test cases, but you should have at least four cases.

Note that you do NOT have to fix the mortgage code beyond what is needed to make it compile and run with your test framework.

You may setup and do this assignment under Linux, ARM Linux, or Windows.

Below is the Mortgage code fragment if you wish to cut and paste it into your modules.

int Mortgage (Boolean male, int age, int salary)

{

  if (male) {

    return ((18<=age<35)?(75*salary):(31<=age<40)?(55*salary):(30*salary));

  } else {        /* female */

    return ((18<=age<30)?(75*salary):(31<=age<40)?(50*salary):(35*salary));

  }

}

Posted Date: 3/28/2013 3:15:26 AM | Location : United States







Related Discussions:- Set up the minunit test framework - mortgage code, Assignment Help, Ask Question on Set up the minunit test framework - mortgage code, Get Answer, Expert's Help, Set up the minunit test framework - mortgage code Discussions

Write discussion on Set up the minunit test framework - mortgage code
Your posts are moderated
Related Questions
Differentiate between program translation and program interpretation. The program translation model makes the execution gap through translating a program written in a program

Modular programming denotes to the practice of writing a program as a sequence of independently assembled source files. Every source file is a modular program intended to be assemb

Q. What are cosmic rays? The ionising radiation several times stronger than γ-rays entering the earth from all the directions from cosmic or interstellar space is known as cosm

Question: (a) Write a proposal for a 10-11 minutes movie of your choice with the expected content. (b) Explain clearly the "Kuleshov Experiment" (c) Give the checklist be

Which types of software programs are usually supported? Our organization is unique in that we are very flexible and can meet most client requires relative to the integration of

Q. Demonstration of sorting problem? The term sorting implies organising elements of a provided set of elements in a specific order i.e. descending order / ascending order / al

Elaborate protected mode memory addressing in brief. Protected mode interrupt: In protected mode, interrupts have exactly the same assignments as in real mode though int

How many types of size categories and data classes are there? There are five size categories (0-4) and 11 data classes only three of which are suitable for application tables:

? Nodes: A node shows any hardware component. The configuration of hardware is shown by attributes of nodes. ? Components: A component shows software. Every component straight

The use of distributed shared memory in parallel computer architecture however the use of distributed shared memory has the problem of accessing the remote memory that results in l