Roads concatenation Problem
Consider we have some GIS (Geo Information System) operating
over some road network. Each road represented as array of
two-dimensional geographical points. Road network is a set
of roads.
System has function called Concatenate(). This function
takes raw road network and should return optimized road
network. Optimization lies in concatenating roads with
matching start or end points, i.e. if road AB end point
matches road BC start point, then optimized network should
contain concatenated road AC. Optimized network shouldn’t
contain two roads which can be concatenated.
Your task is to suggest set of test cases for Concatenate()
function in order to make sure it works correctly.
public interface IPoint
{
double Lat { get; }
double Lon { get; }
}
public Road : List<IPoint>
{
}
public RoadNetwork : List<Road>
{
}
public RoadNetwork Concatenate(RoadNetwork roads);
No Answer is Posted For this Question
Be the First to Post Answer
How to write simple test cases?
Explain the unit testing?
testcases for the additon of 2 numbers write negative and postive cases
8 Answers CoStrategix, Societe Generale,
i got Question from iflex-just client gave just functional spec but they didnt provide any detaill, supporting document.but they want with in ten days testplan and test cases.excuse ans like prototype method. Question is how will u start writing testcases?
write test case for banking application
pls i want test cases for oss? whts the process of oss testing
hi there... can any1 tel me hw to prepare a traceability matrix by taking a practical scenario..i know the theory part bt dont kno how to implent dat..
write a navigation for object repostory
how to write test cases in interview exam like one website it contain a/c # text box, current bill amount text box,sms offer,calling offer,internet these 3 are list boxes and remindmelater,continue these 2 are buttons. and qu is like 1.user doesn't have any dues from past 90 days,2.whose bill amount >= rs2000 from past 6 months. use this 2qu write testcases.
Anyone can please inform me about how to write test cases for any mathematical calculations. Say for example, we have a formula in a given scenario for calculating the interest. The given formula for interest is: (principle * 5)/(12 * 100) In this case, the principle amount may vary. Would like to know how many test cases can be written for this scenario and how can we decide over this. I will be very thankful for the answer....
Consider the following: Pick up and read the newspaper Look at what is on television If there is a program that you are interested in watching then switch the the television on and watch the program Otherwise Continue reading the newspaper If there is a crossword in the newspaper then try and complete the crossword A. SC = 1 and DC = 1 B. SC = 1 and DC = 2 C. SC = 1 and DC = 3 D. SC = 2 and DC = 2 E. SC = 2 and DC = 3
Do you know mutation testing?