OpenWalnut  1.5.0dev
Public Member Functions | List of all members
WIOToolsTest Class Reference

Unit test WIOTools functions. More...

#include <WIOTools_test.h>

+ Inheritance diagram for WIOToolsTest:
+ Collaboration diagram for WIOToolsTest:

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...
 

Detailed Description

Unit test WIOTools functions.

Definition at line 38 of file WIOTools_test.h.

Member Function Documentation

◆ testByteOrderSwitching()

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.

◆ testByteOrderSwitchingOnFloats()

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.

◆ testByteOrderSwitchingOnSingleBytes()

void WIOToolsTest::testByteOrderSwitchingOnSingleBytes ( void  )
inline

On single bytes we should do nothing.

Definition at line 71 of file WIOTools_test.h.

◆ testByteOrderSwitchOnArray()

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.

◆ testReadFileIntoString()

void WIOToolsTest::testReadFileIntoString ( void  )
inline

Test reading a text file in a string.

Definition at line 92 of file WIOTools_test.h.

◆ testWriteStringIntoFile()

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.


The documentation for this class was generated from the following file: