OpenWalnut
1.4.0
|
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. | |
void | testByteOrderSwitchingOnFloats (void) |
Since templates should work on multiple types we just use double here. | |
void | testByteOrderSwitchingOnSingleBytes (void) |
On single bytes we should do nothing. | |
void | testByteOrderSwitchOnArray (void) |
When switching the byte order of an whole array every element should be switched. | |
void | testReadFileIntoString (void) |
Test reading a text file in a string. | |
void | testWriteStringIntoFile (void) |
Writes a text file, and afterwards checks if its the same, by reading it. |
Unit test WIOTools functions.
Definition at line 38 of file WIOTools_test.h.
void WIOToolsTest::testByteOrderSwitching | ( | void | ) | [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.
void WIOToolsTest::testByteOrderSwitchingOnFloats | ( | void | ) | [inline] |
Since templates should work on multiple types we just use double here.
Definition at line 58 of file WIOTools_test.h.
void WIOToolsTest::testByteOrderSwitchingOnSingleBytes | ( | void | ) | [inline] |
On single bytes we should do nothing.
Definition at line 71 of file WIOTools_test.h.
void WIOToolsTest::testByteOrderSwitchOnArray | ( | void | ) | [inline] |
When switching the byte order of an whole array every element should be switched.
Definition at line 81 of file WIOTools_test.h.
void WIOToolsTest::testReadFileIntoString | ( | void | ) | [inline] |
Test reading a text file in a string.
Definition at line 92 of file WIOTools_test.h.
void WIOToolsTest::testWriteStringIntoFile | ( | void | ) | [inline] |
Writes a text file, and afterwards checks if its the same, by reading it.
Definition at line 102 of file WIOTools_test.h.