Skip to content

Commit

Permalink
Fix Span FirstLast test.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Aug 3, 2018
1 parent 00a4a5b commit be517fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/cpp/common/test_span.cc
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ TEST(Span, FirstLast) {
// dynamic extent
{
float *arr = new float[16];
InitializeRange(arr, arr + 16);
Span<float> s (arr, 16);
Span<float> first = s.first(4);

Expand All @@ -355,6 +356,7 @@ TEST(Span, FirstLast) {

{
float *arr = new float[16];
InitializeRange(arr, arr + 16);
Span<float> s (arr, 16);
Span<float> last = s.last(4);

Expand Down

0 comments on commit be517fd

Please sign in to comment.