]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/utility/test/string_view_test2.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / utility / test / string_view_test2.cpp
index 2549e648ac1bbe9e14b9a5d59b147b4ba1ca9e54..135fd1aa35a04a21d2f472f0e3f82f3b9bf8af36 100644 (file)
@@ -97,6 +97,10 @@ void find ( const char *arg ) {
     string_view sr2;
     const char *p;
 
+//     When we search for the empty string, we find it at position 0
+    BOOST_TEST ( sr1.find (sr2) == 0 );
+    BOOST_TEST ( sr1.rfind(sr2) == 0 );
+
 //  Look for each character in the string(searching from the start)
     p = arg;
     sr1 = arg;