lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [lucenenet] NightOwl888 edited a comment on issue #267: Fix asserts that are failing on .NET Standard 2.0
Date Mon, 29 Jun 2020 13:28:52 GMT

NightOwl888 edited a comment on issue #267:

   It turns out this is a design feature of Lucene that is used for testing. The asserts were
failing by design in order to be "caught" in the [BaseTermVectorsFormatTestCase](
This becomes an issue on .NET Standard, because it is set up to cause a fatal crash when an
assertion is thrown (when running in VSTest).
   I am still analyzing what the options are, but I suspect that consistently throwing an
`InvalidOperationException` rather than using `Debug.Assert` in each of the `DocsAndPostionsEnum`
subclasses will likely be the answer.

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:

View raw message