|more useful options|
is (from Test::More) fails although strings should (no: must!) be equalby fsavigny (Novice)
|on Jul 26, 2013 at 10:50 UTC||Need Help??|
fsavigny has asked for the
wisdom of the Perl Monks concerning the following question:
I am using Test::More to test a function that produces error messages (which are quite long - don't get distracted by the content of the one tested here!) Here, I am simply testing whether the output looks as it should:
As far as I am concerned, the output looks right, but is says it isn't.
I am sure this must be some very stupid oversight on my part, but I can't seem to figure out where. If you have a look at this snippet of output:
can you indentify any difference between got and expected?
It's not only that I cannot see the difference between got and expected, but I have also tried copying the strings between the single quotes into files and then diff'ing these files: no difference.
I am new to testing (but not to Perl), so I hope this problem is somehow familiar to somebody...
Many thanks for any help!!t get distracted by the content of the one tested here!) Here, I am simply testing whether the output looks as it should: