Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/GSL.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago <tiagomacarios@users.noreply.github.com>2017-04-20 17:51:37 +0300
committerNeil MacIntosh <neilmac@microsoft.com>2017-04-20 17:51:37 +0300
commitebe7ebfd855a95eb93783164ffb342dbd85cbc27 (patch)
tree6f0e8f434b6efde44a165dc1100f9a70eef617e3 /tests/algorithm_tests.cpp
parentc5851a8161938798c5594a66420cb814fea92711 (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/algorithm_tests.cpp')
-rw-r--r--tests/algorithm_tests.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/algorithm_tests.cpp b/tests/algorithm_tests.cpp
index 3cf46d2..7b5f429 100644
--- a/tests/algorithm_tests.cpp
+++ b/tests/algorithm_tests.cpp
@@ -15,6 +15,7 @@
///////////////////////////////////////////////////////////////////////////////
#include <UnitTest++/UnitTest++.h>
+
#include <gsl/gsl_algorithm>
#include <array>
@@ -179,8 +180,8 @@ SUITE(copy_tests)
span<int*, 4> dst_span_static(dst);
// every line should produce a compilation error
- copy(src_span_dyn, dst_span_dyn);
- copy(src_span_dyn, dst_span_static);
+ copy(src_span_dyn, dst_span_dyn);
+ copy(src_span_dyn, dst_span_static);
copy(src_span_static, dst_span_dyn);
copy(src_span_static, dst_span_static);
}
@@ -196,9 +197,9 @@ SUITE(copy_tests)
span<int> dst_span_dyn(dst);
span<int, 4> dst_span_static(dst);
- CHECK_THROW(copy(src_span_dyn, dst_span_dyn), fail_fast);
- CHECK_THROW(copy(src_span_dyn, dst_span_static), fail_fast);
- CHECK_THROW(copy(src_span_static, dst_span_dyn), fail_fast);
+ CHECK_THROW(copy(src_span_dyn, dst_span_dyn), fail_fast);
+ CHECK_THROW(copy(src_span_dyn, dst_span_static), fail_fast);
+ CHECK_THROW(copy(src_span_static, dst_span_dyn), fail_fast);
#ifdef CONFIRM_COMPILATION_ERRORS
copy(src_span_static, dst_span_static);