wirte the test cases for triangle
Answer Posted / vikas
Assume that the prg takes inputs as 3 sides of triangle :
1. Enter 0 0 0 : Error : no triangle can be made
2. Enter -1 -1 -1 Error : no triangle can be made -ve values
3. Enter 1 0 x : Error : no triangle can be made . only
numbers and no alhpabets
4. Do not enter any values : Prompt to enter valid values
5. Enter 0.000000000000001 , 1000000000000,1000000000000 :
Triangle should be made (Boundary value)
6. And the most tricky
Enter 1 2 4 : Triangle can not be made . Summation of 2
sides should always greater than third value . 1+2<4 . So
triangle can not be made
7. 2 2 2 : Equilateral triangle
8. 1 2 2 : Isoscelous triangle
9. Test with very small values , very large values and
combinations of both .
| Is This Answer Correct ? | 68 Yes | 7 No |
Post New Answer View All Answers
What is function points??????
What is common interface?
can someone give me a brief idea about embedded testing.. i know both embedded system concepts and testing concepts.. i just want to know what we have to do for embedded testing
can anyone tell anyone is providing training for CSTE exam in bangalore? and can u send some links related to this?
Explain thread testing.
What are drawbacks in system development life cycle
Is compatabilitytestig and port testing are same
can u merge 10GUI map files into a single GUI map file in winrunner?
Can anyone please suggest me a online book on manual testing??
what is mean by Performance Related Testing in data base?
Work flow in testing in your company?
What does 100% statement coverage mean?
HI, I WANT TO DO A ISTQB FOUNDATION CERTIFICATION FROM HYDERABAD WHICH INSTITUTE WOULD BE GOOD FOR ME,WHERE I CAN TAKE SOME TRAINING SESSIONS FOR CLEARING THIS EXAMINATION.
What is the difference between latent and masked defects?
What is positive and negative testing?