MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / TEST_CASE

Function TEST_CASE

test/byte_test.cpp:32–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30using migraphx::byte;
31
32TEST_CASE(byte_basic_construction)
33{
34 // Test default construction
35 constexpr byte b1{};
36 EXPECT(migraphx::to_integer<uint8_t>(b1) == 0);
37
38 // Test explicit construction from values
39 constexpr byte b2{static_cast<byte>(42)};
40 EXPECT(migraphx::to_integer<uint8_t>(b2) == 42);
41
42 constexpr byte b3{static_cast<byte>(255)};
43 EXPECT(migraphx::to_integer<uint8_t>(b3) == 255);
44
45 constexpr byte b4{static_cast<byte>(128)};
46 EXPECT(migraphx::to_integer<uint8_t>(b4) == 128);
47}
48
49TEST_CASE(byte_left_shift_operator)
50{

Callers

nothing calls this directly

Calls 1

strMethod · 0.45

Tested by

no test coverage detected