diff options
author | Tiago <tiagomacarios@users.noreply.github.com> | 2017-04-20 17:51:37 +0300 |
---|---|---|
committer | Neil MacIntosh <neilmac@microsoft.com> | 2017-04-20 17:51:37 +0300 |
commit | ebe7ebfd855a95eb93783164ffb342dbd85cbc27 (patch) | |
tree | 6f0e8f434b6efde44a165dc1100f9a70eef617e3 /tests/byte_tests.cpp | |
parent | c5851a8161938798c5594a66420cb814fea92711 (diff) |
Reformat files to follow clang-format style (#492)
Project files were not following the clang-format style. For people
using IDEs were clang-format is always run after a save this would
cause unwanted changes.
This commit only applies "clang-format -i" to files.
Diffstat (limited to 'tests/byte_tests.cpp')
-rw-r--r-- | tests/byte_tests.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/byte_tests.cpp b/tests/byte_tests.cpp index 82fdcc0..753936e 100644 --- a/tests/byte_tests.cpp +++ b/tests/byte_tests.cpp @@ -15,6 +15,7 @@ /////////////////////////////////////////////////////////////////////////////// #include <UnitTest++/UnitTest++.h> + #include <gsl/gsl_byte> #include <iostream> @@ -111,11 +112,11 @@ SUITE(byte_tests) CHECK(0x12 == gsl::to_integer<unsigned long>(b)); CHECK(0x12 == gsl::to_integer<unsigned long long>(b)); -// CHECK(0x12 == gsl::to_integer<float>(b)); // expect compile-time error -// CHECK(0x12 == gsl::to_integer<double>(b)); // expect compile-time error + // CHECK(0x12 == gsl::to_integer<float>(b)); // expect compile-time error + // CHECK(0x12 == gsl::to_integer<double>(b)); // expect compile-time error } - int modify_both(gsl::byte& b, int& i) + int modify_both(gsl::byte & b, int& i) { i = 10; b = to_byte<5>(); @@ -124,12 +125,11 @@ SUITE(byte_tests) TEST(aliasing) { - int i{ 0 }; + int i{0}; const int res = modify_both(reinterpret_cast<byte&>(i), i); CHECK(res == i); } } - } int main(int, const char* []) { return UnitTest::RunAllTests(); } |