OpenWalnut
1.5.0dev
|
Unit test WIOTools functions. More...
#include <WIOTools_test.h>
Public Member Functions | |
void | testByteOrderSwitching (void) |
When switching byte order, the first and last bytes should be swapped and the bytes inbetween too. More... | |
void | testByteOrderSwitchingOnFloats (void) |
Since templates should work on multiple types we just use double here. More... | |
void | testByteOrderSwitchingOnSingleBytes (void) |
On single bytes we should do nothing. More... | |
void | testByteOrderSwitchOnArray (void) |
When switching the byte order of an whole array every element should be switched. More... | |
void | testReadFileIntoString (void) |
Test reading a text file in a string. More... | |
void | testWriteStringIntoFile (void) |
Writes a text file, and afterwards checks if its the same, by reading it. More... | |
Unit test WIOTools functions.
Definition at line 38 of file WIOTools_test.h.
|
inline |
When switching byte order, the first and last bytes should be swapped and the bytes inbetween too.
Definition at line 45 of file WIOTools_test.h.
|
inline |
Since templates should work on multiple types we just use double here.
Definition at line 58 of file WIOTools_test.h.
|
inline |
On single bytes we should do nothing.
Definition at line 71 of file WIOTools_test.h.
|
inline |
When switching the byte order of an whole array every element should be switched.
Definition at line 81 of file WIOTools_test.h.
|
inline |
Test reading a text file in a string.
Definition at line 92 of file WIOTools_test.h.
|
inline |
Writes a text file, and afterwards checks if its the same, by reading it.
Definition at line 102 of file WIOTools_test.h.