TextComparer issue for empty parameterLists and expressionLists

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

TextComparer issue for empty parameterLists and expressionLists

ngdrummer
Hello,

I didn't use TextComparer for Project 10, thinking that opening the xml's in a browser and scrolling incrementally was at least as helpful because I could visually see when exactly things went wrong, what was called before, etc.

Now that I'm using TextComparer for project 11, I went ahead and ran it on some seemingly identical xml files from project 10. Well, to my surprise, even though they are IDENTICAL in browser view, the textcomparer is bringing up an error in comparison specifically when there is an empty parameterList or expressionList, and I do not know how to fix the issue.

It says that although my file reads <parameterList></parameterList>, the comparison file reads <parameterList> with nothing after, however, upon visual inspection, they do in fact have the opening and closing on the same line.  I do not understand how this works.

Any help is greatly appreciated
Reply | Threaded
Open this post in threaded view
|

Re: TextComparer issue for empty parameterLists and expressionLists

ngdrummer
Help with this issue is also extremely appreciated considering my professor uses these comparing tools to grade us, so minute differences that may not even cause an issue in real application, but show up as a failure on the comparisons, can cause a grade decrement.

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: TextComparer issue for empty parameterLists and expressionLists

cadet1620
Administrator
In reply to this post by ngdrummer
I don't understand the use of TextComparer for project 11. There is nothing in the project 11 tests to compare against; it's all interactive testing.

In any case, if you e-mail me the TextComparer command line you are using and the two project 10 XML files, I'll see if I can tell what's happening.

--Mark
Reply | Threaded
Open this post in threaded view
|

Re: TextComparer issue for empty parameterLists and expressionLists

ngdrummer
Ah you're right, I'm mostly just rechecking since I couldn't get the engine perfect before, and wanted to make sure it was working correctly before moving to project 11. I'll go ahead and email you the files now.

My textcomparer execution in command was simple:

TextCompare <pathto>/Main1.xml <pathto>/Main.xml
Comparison failure in line 9:
<parameterList></parameterList>
<parameterList>

but when I open the xml in a browser to view, the two look identical, and both have
<parameterList></parameterList>
written on one line without visible spacing.