X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Flibs%2Futility%2Ftest%2Fstring_ref_test2.cpp;h=d7337751795df24d8a73199164423b7c7c4fb325;hb=92f5a8d42d07f9929ae4fa7e01342fe8d96808a8;hp=ccb5d6dae119a9b0dbde98f487318bfe1a47ea19;hpb=a0324939f9d0e1905d5df8f57442f09dc70af83d;p=ceph.git diff --git a/ceph/src/boost/libs/utility/test/string_ref_test2.cpp b/ceph/src/boost/libs/utility/test/string_ref_test2.cpp index ccb5d6dae..d73377517 100644 --- a/ceph/src/boost/libs/utility/test/string_ref_test2.cpp +++ b/ceph/src/boost/libs/utility/test/string_ref_test2.cpp @@ -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;