|Subject:||XML::RSS 1.05 - 2.0-generate test 14 failure|
The following error was received from my install of XML::RSS 1.05 on Windows NT 4.0. not ok 14 - t/2.0-generated.xml has '1583' characters. # Failed test (t/2.0-generate.t at line 106) # got: '1583' # expected: '1535' # Looks like you failed 1 tests of 25. The error is caused by a bug in the test script. On UNIX (and Cygwin where it also installs just fine), the end of line character is a line feed "\n" character. On Windows, however, its a carriage return and a line feed character "\r\n". The test where the error occurs is checking to see if size of the generated XML file is the size expected. The size its expecting is 1535 bytes. On Windows, it gets 1583. The file is 49 lines long. The difference between the two is 49 bytes. It appears that the test does not take into account the different line endings when calculating the expected size.