libstdc++: Add missing call to unused subroutine in split_view test
authorPatrick Palka <ppalka@redhat.com>
Wed, 19 Feb 2020 18:54:21 +0000 (13:54 -0500)
committerPatrick Palka <ppalka@redhat.com>
Wed, 19 Feb 2020 22:15:19 +0000 (17:15 -0500)
libstdc++-v3/ChangeLog:

* testsuite/std/ranges/adaptors/split.cc (test03): Don't include the
null terminator of the underlying string as part of the test_range.
(main): Call test03.

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/std/ranges/adaptors/split.cc

index 7f3f88769573dbeaf0a68fb1ca69fe3dd3970526..74f4c8d817fbc1699d03f0f46e21c6807cf10441 100644 (file)
@@ -1,3 +1,9 @@
+2020-02-19  Patrick Palka  <ppalka@redhat.com>
+
+       * testsuite/std/ranges/adaptors/split.cc (test03): Don't include the
+       null terminator of the underlying string as part of the test_range.
+       (main): Call test03.
+
 2020-02-19  Jonathan Wakely  <jwakely@redhat.com>
 
        * include/bits/stl_iterator.h (common_iterator): Add copyable<I>
index 129a8249f217a250e2a7c48b190d8136f60c9df7..8b3bfcc0930ca0bc82b9bcad421778089104a29b 100644 (file)
@@ -64,7 +64,7 @@ void
 test03()
 {
   char x[] = "the quick brown fox";
-  test_range<char, forward_iterator_wrapper> rx(x);
+  test_range<char, forward_iterator_wrapper> rx(x, x+sizeof(x)-1);
   auto v = rx | views::split(' ');
   auto i = v.begin();
   VERIFY( ranges::equal(*i++, "the"sv) );
@@ -79,4 +79,5 @@ main()
 {
   test01();
   test02();
+  test03();
 }