Generate test cases for replace string method

Showing Answers 1 - 3 of 3 Answers

Meet Kamal Kaur

  • Jul 24th, 2005
 

1. If characters in new string > characaters in previous string, 
none of the characters should get truncated. 
 
2. If characters in new string < characters in previous string, 
junk characters should not be added. 
 
3. Spaces before and after the string should not be deleted. 
 
4. Only the first occurrence of the string should be replaced.

murugan

  • Aug 5th, 2006
 

would you please tell me what is string method?

  Was this answer useful?  Yes

Meet Kamal Kaur

  • Apr 6th, 2007
 

As the name suggests, Replace String method is used to replace a string in any document/file etc. e.g. Replace function in MS-Word application.

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