lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Garski (JIRA)" <>
Subject [jira] Updated: (LUCENENET-227) TestIndexableBinaryStringTools - 4 failing tests
Date Wed, 11 Nov 2009 19:42:39 GMT


Michael Garski updated LUCENENET-227:

    Attachment: TestIndexableBinaryStringTools.patch

Here's the patch.  A few things to note:

The IndexableBinaryStringTools class is a utility that is new in 2.9 and is not utilized within
the core of Lucene and "Provides support for converting byte sequences to Strings and back
again. The resulting Strings preserve the original byte sequences' sort order."

The Java classes used for the conversion are ByteBuffer and CharBuffer, of which there is
no equivalent in .NET.  The original conversion replaced them with MemoryStreams, however
in converting a string to binary one would probably not drop it into a MemoryStream first
so I used List<byte> and List<char> to perform the conversion as the conversion
requires access to the underlying arrays of the MemoryStream, which is not always possible
depending on how it was instantiated.

> TestIndexableBinaryStringTools - 4 failing tests
> ------------------------------------------------
>                 Key: LUCENENET-227
>                 URL:
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Michael Garski
>         Attachments: TestIndexableBinaryStringTools.patch
> There are four failing tests in Lucene.Net.Util.TestIndexableBinaryStringTools:
> TestAllNullInput
> TestEmptyInput
> TestEncodedSortability
> TestRandomBinaryRoundTrip
> I'm starting to work on these now and will post updates with progress/issues.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message