atMETEO
An ATmega based weather station
Functions
test_utils.cpp File Reference

Unit tests for Utilities. More...

#include <catch.hpp>
#include "lib/utils.h"

Functions

 TEST_CASE ("BitOperationsSimple", "[utils]")
 Tests bit operations. More...
 
 TEST_CASE ("BitOperationsReversingBytes", "[utils]")
 Tests Sensors::byteReverse. More...
 
 TEST_CASE ("BitOperationsReversingNibbles", "[utils]")
 Tests Sensors::nibbleReverse. More...
 
 TEST_CASE ("BitOperationsLow&HighNibble", "[utils]")
 Tests Sensors::lowNibble and Sensors::highNibble. More...
 
 TEST_CASE ("BitOperationsCombiningBytesToWord", "[utils]")
 Tests Sensors::word. More...
 
 TEST_CASE ("BitOperationsParity", "[utils]")
 Tests Sensors::parity. More...
 
 TEST_CASE ("BitOperationsMinimum&Maximum", "[utils]")
 Tests Sensors::min and Sensors::max. More...
 

Detailed Description

Unit tests for Utilities.

Function Documentation

◆ TEST_CASE() [1/7]

TEST_CASE ( "BitOperationsSimple"  ,
""  [utils] 
)

◆ TEST_CASE() [2/7]

TEST_CASE ( "BitOperationsReversingBytes"  ,
""  [utils] 
)

◆ TEST_CASE() [3/7]

TEST_CASE ( "BitOperationsReversingNibbles"  ,
""  [utils] 
)

◆ TEST_CASE() [4/7]

TEST_CASE ( "BitOperationsLow&HighNibble"  ,
""  [utils] 
)

◆ TEST_CASE() [5/7]

TEST_CASE ( "BitOperationsCombiningBytesToWord"  ,
""  [utils] 
)

Tests Sensors::word.

◆ TEST_CASE() [6/7]

TEST_CASE ( "BitOperationsParity"  ,
""  [utils] 
)

◆ TEST_CASE() [7/7]

TEST_CASE ( "BitOperationsMinimum&Maximum"  ,
""  [utils] 
)