You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2018/02/16 16:46:27 UTC
[trafficserver] branch master updated: Test: fix string_view unit
test.
This is an automated email from the ASF dual-hosted git repository.
bcall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 7f1b208 Test: fix string_view unit test.
7f1b208 is described below
commit 7f1b208f7fd3af24566876e13b2ec09099cc250a
Author: Alan M. Carroll <am...@apache.org>
AuthorDate: Fri Feb 16 08:41:56 2018 -0600
Test: fix string_view unit test.
---
lib/ts/unit-tests/test_string_view.cc | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/ts/unit-tests/test_string_view.cc b/lib/ts/unit-tests/test_string_view.cc
index 42f4cb9..c5f9619 100644
--- a/lib/ts/unit-tests/test_string_view.cc
+++ b/lib/ts/unit-tests/test_string_view.cc
@@ -255,12 +255,12 @@ TEST_CASE("Access & iterators", "[string_view] [access]")
REQUIRE(*sv.begin() == 'a');
REQUIRE(*sv.cbegin() == 'a');
- REQUIRE(*sv.end() == '\0');
- REQUIRE(*sv.cend() == '\0');
+ REQUIRE(*(--sv.end()) == 'e');
+ REQUIRE(*(--sv.cend()) == 'e');
REQUIRE(*sv.rbegin() == 'e');
REQUIRE(*sv.crbegin() == 'e');
- REQUIRE(*sv.rend() == '\0');
- REQUIRE(*sv.crend() == '\0');
+ REQUIRE(*(--sv.rend()) == 'a');
+ REQUIRE(*(--sv.crend()) == 'a');
int n = 0;
for (auto it : sv) {
--
To stop receiving notification emails like this one, please contact
bcall@apache.org.