From 03b2371387dcae9f801cabbc1819b1d7e3350829 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 14 Aug 2019 23:29:46 +1000 Subject: Cleanup: move trailing comments to avoid wrapping code Some statements were split across multiple lines because of their trailing comments. In most cases it's clearer to put the comments above. --- tests/gtests/blenlib/BLI_string_test.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/gtests') diff --git a/tests/gtests/blenlib/BLI_string_test.cc b/tests/gtests/blenlib/BLI_string_test.cc index bffd38016a7..b63b591b39a 100644 --- a/tests/gtests/blenlib/BLI_string_test.cc +++ b/tests/gtests/blenlib/BLI_string_test.cc @@ -401,8 +401,8 @@ TEST(string, StrFormatByteUnits) BLI_str_format_byte_unit(size_str, size = -1024, true); EXPECT_STREQ("-1 KB", size_str); - BLI_str_format_byte_unit( - size_str, size = 9223372036854775807, true); /* LLONG_MAX - largest possible value */ + /* LLONG_MAX - largest possible value */ + BLI_str_format_byte_unit(size_str, size = 9223372036854775807, true); EXPECT_STREQ("9223.372 PB", size_str); BLI_str_format_byte_unit(size_str, size = -9223372036854775807, true); EXPECT_STREQ("-9223.372 PB", size_str); @@ -428,8 +428,8 @@ TEST(string, StrFormatByteUnits) BLI_str_format_byte_unit(size_str, size = -1024, false); EXPECT_STREQ("-1 KiB", size_str); - BLI_str_format_byte_unit( - size_str, size = 9223372036854775807, false); /* LLONG_MAX - largest possible value */ + /* LLONG_MAX - largest possible value */ + BLI_str_format_byte_unit(size_str, size = 9223372036854775807, false); EXPECT_STREQ("8192.0 PiB", size_str); BLI_str_format_byte_unit(size_str, size = -9223372036854775807, false); EXPECT_STREQ("-8192.0 PiB", size_str); -- cgit v1.2.3