You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2010/01/25 15:41:29 UTC
svn commit: r902827 -
/lucene/lucy/trunk/core/Lucy/Test/Util/TestStringHelper.c
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);