[EMAIL PROTECTED] wrote:
Author: antonp
Date: Tue May  2 01:37:49 2006
New Revision: 398856

URL: http://svn.apache.org/viewcvs?rev=398856&view=rev
[...]
+// used to exercise +// find (const value_type*, size_type, size_type)
+static const TestCase ptr_size_size_test_cases [] = {
+
+#undef TEST
+#define TEST(str, arg, off, size, res, bthrow)                        \
+    { __LINE__, off, size, -1, -1, -1, str, sizeof str - 1, arg,      \
+      sizeof arg - 1, 0, 0, res, bthrow }
+
+    //    +--------------------------------------- controlled sequence
+    //    |            +-------------------------- sequence to be found
+ // | | +---------- find() off argument + // | | | +------ find() n argument + // | | | | +-- expected result + // | | | | | exception info + // | | | | | | 0 - no exception + // | | | | | | 1 - length_error + // | | | | | | + // | | | | | +----+ + // V V V V V V
[...]
+    TEST ("",           "cba",         0, -1,  0,       1),
+    TEST ("abcdefghij", "cba",         0, -1,  0,       1),
+    TEST (LSTR,         "xxx",         0, -1,  0,       1),
+    TEST ("abcdefghij", LSTR,          0, -1,  0,       1),

I'm not certain this is correct. Can you explain what makes you
think the find function should throw length_error in these cases
(or in any case for that matter)?

Thanks
Martin

Reply via email to