in reply to Test and endianness
This is for the purposes of testing only. Correct?
If so, then dodge the bullet. Store your test data file as ASCII.
Within your test script, load the ASCII and pack it using the various "Native format" specifiers.
This will generate your binary data correctly regardless of what platform you run it on. Supply the packed data to your test.
Result: Your tests are platform independent, and you've exercised your binary interpretation routines.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Test and endianness
by andreas1234567 (Vicar) on Jan 16, 2008 at 13:14 UTC |