From b118451e301d734e3e783b3acdf871f3f6ea851c Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Wed, 6 Nov 2024 01:47:26 +0800 Subject: Move switch statement bodies to their own lines (#5493) * Move switch statement bodies to their own lines * format --------- Co-authored-by: Yong He --- tools/slang-unit-test/unit-test-byte-encode.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'tools/slang-unit-test/unit-test-byte-encode.cpp') diff --git a/tools/slang-unit-test/unit-test-byte-encode.cpp b/tools/slang-unit-test/unit-test-byte-encode.cpp index 36b9f91d8..633d3918d 100644 --- a/tools/slang-unit-test/unit-test-byte-encode.cpp +++ b/tools/slang-unit-test/unit-test-byte-encode.cpp @@ -94,10 +94,18 @@ SLANG_UNIT_TEST(byteEncode) uint32_t mask; switch (v) { - case 0: mask = 0xffffffff; break; - case 1: mask = 0x00ffffff; break; - case 2: mask = 0x0000ffff; break; - case 3: mask = 0x000000ff; break; + case 0: + mask = 0xffffffff; + break; + case 1: + mask = 0x00ffffff; + break; + case 2: + mask = 0x0000ffff; + break; + case 3: + mask = 0x000000ff; + break; } initialBuffer[i] = randGen.nextInt32() & mask; -- cgit v1.2.3