| 30 | using migraphx::byte; |
| 31 | |
| 32 | TEST_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 | |
| 49 | TEST_CASE(byte_left_shift_operator) |
| 50 | { |