Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
EnumBitFieldTests Namespace Reference

Enumerations

enum  Bits : uint32_t {
  bit0 = 0x0001 , bit1 = 0x0002 , bit2 = 0x0004 , bit3 = 0x0008 ,
  bit1and2 = bit1 | bit2 , bit30 = 0x40000000 , bit31 = 0x80000000 , bit30and31 = bit30 | bit31
}
 

Functions

 TEST_CASE ("Test enum bit values", "[Tricky]")
 

Enumeration Type Documentation

◆ Bits

Enumerator
bit0 
bit1 
bit2 
bit3 
bit1and2 
bit30 
bit31 
bit30and31 

Definition at line 170 of file Tricky.tests.cpp.

170 : uint32_t {
171 bit0 = 0x0001,
172 bit1 = 0x0002,
173 bit2 = 0x0004,
174 bit3 = 0x0008,
175 bit1and2 = bit1 | bit2,
176 bit30 = 0x40000000,
177 bit31 = 0x80000000,
179 };
unsigned int uint32_t
Definition stdint.h:126

Function Documentation

◆ TEST_CASE()

EnumBitFieldTests::TEST_CASE ( "Test enum bit values" ,
"" [Tricky] )

Definition at line 181 of file Tricky.tests.cpp.

182 {
183 REQUIRE( 0xc0000000 == bit30and31 );
184 }
#define REQUIRE(...)
Definition catch.hpp:185