1
0
mirror of https://github.com/microsoft/GSL.git synced 2025-05-14 10:19:55 -04:00

Added new span-related files.

This commit is contained in:
Neil MacIntosh
2016-02-24 11:26:28 -08:00
parent d2f12a8fa3
commit cec26a23b9
5 changed files with 1801 additions and 5 deletions

View File

@ -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/multi_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/span.h ../include/string_span.h)
target_link_libraries(${name} UnitTest++)
install(TARGETS ${name}
RUNTIME DESTINATION bin
@ -44,6 +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)

1680
tests/span_tests.cpp Normal file

File diff suppressed because it is too large Load Diff