Changeset 15 in tmcsimulator for trunk/test/tmcsim


Ignore:
Timestamp:
04/22/2016 03:04:30 PM (10 years ago)
Author:
jdalbey
Message:

ParamicsFileReaderTest?.java updated to work on Window or Unix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/tmcsim/paramicscommunicator/ParamicsFileReaderTest.java

    r13 r15  
    9898                FileIOUpdate msg = (FileIOUpdate) obj; 
    9999                assertEquals("1", msg.ioID); 
    100                 assertEquals((long) 1 + kFileContents.length(), (long) msg.ioBytes); 
     100                // Windows and Unix have different EOL characters, so we have 
     101                // to approximate the answer here. 
     102                boolean result = kFileContents.length() - msg.ioBytes < 2; 
     103                assertTrue(result); 
    101104            } else if (obj instanceof Document) 
    102105            { 
Note: See TracChangeset for help on using the changeset viewer.