From d2f12a8fa3df7d0debaa683c4c4cabcaeea383a1 Mon Sep 17 00:00:00 2001 From: Neil MacIntosh Date: Wed, 24 Feb 2016 11:03:33 -0800 Subject: [PATCH] File renames to reflect new multi_span name. --- include/gsl.h | 3 ++- include/{span.h => multi_span.h} | 0 include/string_span.h | 2 +- tests/CMakeLists.txt | 4 ++-- tests/bounds_tests.cpp | 2 +- tests/{span_tests.cpp => multi_span_tests.cpp} | 4 ++-- tests/strided_span_tests.cpp | 2 +- 7 files changed, 9 insertions(+), 8 deletions(-) rename include/{span.h => multi_span.h} (100%) rename tests/{span_tests.cpp => multi_span_tests.cpp} (99%) diff --git a/include/gsl.h b/include/gsl.h index ad064ba..03f8545 100644 --- a/include/gsl.h +++ b/include/gsl.h @@ -21,7 +21,8 @@ #include "gsl_assert.h" // Ensures/Expects #include "gsl_util.h" // finally()/narrow()/narrow_cast()... -#include "span.h" // span, strided_span... +//#include "span.h" // span +#include "multi_span.h" // multi_span, strided_span... #include "string_span.h" // zstring, string_span, zstring_builder... #include diff --git a/include/span.h b/include/multi_span.h similarity index 100% rename from include/span.h rename to include/multi_span.h diff --git a/include/string_span.h b/include/string_span.h index f585d3f..c58cef9 100644 --- a/include/string_span.h +++ b/include/string_span.h @@ -21,7 +21,7 @@ #include "gsl_assert.h" #include "gsl_util.h" -#include "span.h" +#include "multi_span.h" #include #include diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 7990ec3..87999dc 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -33,7 +33,7 @@ if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/unittest-cpp) endif() function(add_gsl_test name) - add_executable(${name} ${name}.cpp ../include/gsl.h ../include/gsl_assert.h ../include/gsl_util.h ../include/span.h ../include/string_span.h) + add_executable(${name} ${name}.cpp ../include/gsl.h ../include/gsl_assert.h ../include/gsl_util.h ../include/multi_span.h ../include/string_span.h) target_link_libraries(${name} UnitTest++) install(TARGETS ${name} RUNTIME DESTINATION bin @@ -44,7 +44,7 @@ function(add_gsl_test name) ) endfunction() -add_gsl_test(span_tests) +add_gsl_test(multi_span_tests) add_gsl_test(strided_span_tests) add_gsl_test(string_span_tests) add_gsl_test(at_tests) diff --git a/tests/bounds_tests.cpp b/tests/bounds_tests.cpp index ab8c5bd..736a85c 100644 --- a/tests/bounds_tests.cpp +++ b/tests/bounds_tests.cpp @@ -15,7 +15,7 @@ /////////////////////////////////////////////////////////////////////////////// #include -#include +#include #include using namespace std; diff --git a/tests/span_tests.cpp b/tests/multi_span_tests.cpp similarity index 99% rename from tests/span_tests.cpp rename to tests/multi_span_tests.cpp index 0d1170d..207428d 100644 --- a/tests/span_tests.cpp +++ b/tests/multi_span_tests.cpp @@ -15,7 +15,7 @@ /////////////////////////////////////////////////////////////////////////////// #include -#include +#include #include #include @@ -37,7 +37,7 @@ struct DerivedClass : BaseClass }; } -SUITE(span_tests) +SUITE(multi_span_tests) { TEST(default_constructor) diff --git a/tests/strided_span_tests.cpp b/tests/strided_span_tests.cpp index 8b96ddf..9fcdfeb 100644 --- a/tests/strided_span_tests.cpp +++ b/tests/strided_span_tests.cpp @@ -15,7 +15,7 @@ /////////////////////////////////////////////////////////////////////////////// #include -#include +#include #include #include