Skip to content

Commit

Permalink
Validate bit_bound traits member
Browse files Browse the repository at this point in the history
    * tests/idl4/enum/client.cpp:
  • Loading branch information
jwillemsen committed Aug 6, 2023
1 parent 1df9f32 commit d843760
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/idl4/enum/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,22 @@ int main (int /*argc*/, char* /*argv*/[])
TAOX11_TEST_ERROR << "Type of MyEnum is not uint32_t" << std::endl;
}

if (IDL::traits<MyEnumBound8>::bit_bound::value != 8)
{
TAOX11_TEST_ERROR << "bit_bound traits MyEnumBound8 is 8" << std::endl;
}
if (IDL::traits<MyEnumBound16>::bit_bound::value != 16)
{
TAOX11_TEST_ERROR << "bit_bound traits MyEnumBound16 is 16" << std::endl;
}
if (IDL::traits<MyEnumBound32>::bit_bound::value != 32)
{
TAOX11_TEST_ERROR << "bit_bound traits MyEnumBound32 is 32" << std::endl;
}
if (IDL::traits<MyEnum>::bit_bound::value != 32)
{
TAOX11_TEST_ERROR << "bit_bound traits MyEnum is 32" << std::endl;
}

return 0;
}

0 comments on commit d843760

Please sign in to comment.