lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r902827 - /lucene/lucy/trunk/core/Lucy/Test/Util/TestStringHelper.c
Date Mon, 25 Jan 2010 14:41:29 GMT
Author: marvin
Date: Mon Jan 25 14:41:29 2010
New Revision: 902827

URL: http://svn.apache.org/viewvc?rev=902827&view=rev
Log:
Add a comment to TestStringHelper explaining why an iterator doesn't traverse
all the values it seems like it should.

Modified:
    lucene/lucy/trunk/core/Lucy/Test/Util/TestStringHelper.c

Modified: lucene/lucy/trunk/core/Lucy/Test/Util/TestStringHelper.c
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/core/Lucy/Test/Util/TestStringHelper.c?rev=902827&r1=902826&r2=902827&view=diff
==============================================================================
--- lucene/lucy/trunk/core/Lucy/Test/Util/TestStringHelper.c (original)
+++ lucene/lucy/trunk/core/Lucy/Test/Util/TestStringHelper.c Mon Jan 25 14:41:29 2010
@@ -8,6 +8,10 @@
 test_SKIP_and_TRAILING(TestBatch *batch)
 {
     u8_t i, max;
+    
+    /* Some of the upper max boundaries are skipped (e.g. 127)
+     * because they may not appear as initial bytes in legal UTF-8.
+     */
     for (i = 0, max = 127; i < max; i++) {
         ASSERT_INT_EQ(batch, StrHelp_UTF8_SKIP[i], 1, 
             "UTF8_SKIP ascii %d", (int)i);



Mime
View raw message