diff mbox series

libstdc++: Add missing call to unused subroutine in split_view test

Message ID 20200219190126.1305814-1-ppalka@redhat.com
State New
Headers show
Series libstdc++: Add missing call to unused subroutine in split_view test | expand

Commit Message

Patrick Palka Feb. 19, 2020, 7:01 p.m. UTC
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/testsuite/std/ranges/adaptors/split.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Jonathan Wakely Feb. 19, 2020, 9:08 p.m. UTC | #1
On 19/02/20 14:01 -0500, Patrick Palka wrote:
>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.

OK.
diff mbox series

Patch

diff --git a/libstdc++-v3/testsuite/std/ranges/adaptors/split.cc b/libstdc++-v3/testsuite/std/ranges/adaptors/split.cc
index 129a8249f21..8b3bfcc0930 100644
--- a/libstdc++-v3/testsuite/std/ranges/adaptors/split.cc
+++ b/libstdc++-v3/testsuite/std/ranges/adaptors/split.cc
@@ -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();
 }