Write test cases for char * my_itoa(int n) method? What if this function is mission critical? How will you test it? How can you speed up the implementation?

Showing Answers 1 - 1 of 1 Answers

Kesari

  • Jul 14th, 2005
 

char * my_itoa(int n) method 
For this function :  
First I will pass correct argument and checks weather it is functioning correctly or not for correct arguments. 
I will pass float as argument, and check weather type casting is happening or not. 
I will pass char as argument, check proper exception is instantiated or not. 
I will pass Null as argument. 
I will pass more then integer range value. 
I will pass two integers as arguments. 
 
Like that I will test this function? this is more like unit test cases.. developed by developer? 

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions