03-07-2009, 03:51 AM
I need to compare expected and actual values which is nothing but two paragraphs.
Is there a best way experts suggest to do this?
I have been using the strcomp built in function but the problem I am seeing is it always results in "-1" as the two paras differ by spaces per my understanding.
I did a diff between these two I do not see any difference in text but again I cannot make out if there is any extra space in one para between any of the two words.
I am thinking there might be a better way to debug this as I am tired looking at the text differences which I couldn't find and now I hae to look at Space difference between each words... This looks to be quite impossible for me as there are like 100 words in one para.
I haven't used wdiff.exe , not sure how this works.Any ideas?
Any help/ideas appreciated.
Is there a best way experts suggest to do this?
I have been using the strcomp built in function but the problem I am seeing is it always results in "-1" as the two paras differ by spaces per my understanding.
I did a diff between these two I do not see any difference in text but again I cannot make out if there is any extra space in one para between any of the two words.
I am thinking there might be a better way to debug this as I am tired looking at the text differences which I couldn't find and now I hae to look at Space difference between each words... This looks to be quite impossible for me as there are like 100 words in one para.
I haven't used wdiff.exe , not sure how this works.Any ideas?
Any help/ideas appreciated.