]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/utility/test/string_ref_test2.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / utility / test / string_ref_test2.cpp
index ccb5d6dae119a9b0dbde98f487318bfe1a47ea19..d7337751795df24d8a73199164423b7c7c4fb325 100644 (file)
@@ -93,6 +93,10 @@ void find ( const char *arg ) {
     string_ref 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;