Skip to content

Commit

Permalink
Lucene.Net.Analysis.Tokenizer: Allow enabling "asserts" for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
NightOwl888 committed Jun 30, 2020
1 parent df65d63 commit ccd4a64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lucene.Net/Analysis/Tokenizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public void SetReader(TextReader input)
throw new InvalidOperationException("TokenStream contract violation: Close() call missing");
}
this.inputPending = input;
Debug.Assert(SetReaderTestPoint());
if (Lucene.Net.Diagnostics.Debugging.AssertsEnabled) SetReaderTestPoint();
}

public override void Reset()
Expand Down

0 comments on commit ccd4a64

Please sign in to comment.