Skip to content

Commit

Permalink
Test review of TestUniqueTermCount
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirwin committed Mar 11, 2024
1 parent 0da3d2b commit d41501f
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/Lucene.Net.Tests/Index/TestUniqueTermCount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using Lucene.Net.Store;
using Lucene.Net.Util;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Text;
using JCG = J2N.Collections.Generic;
Expand Down Expand Up @@ -79,10 +78,10 @@ public void Test()
}
}

/**
* Makes a bunch of single-char tokens (the max # unique terms will at most be 26).
* puts the # unique terms into expected, to be checked against the norm.
*/
/// <summary>
/// Makes a bunch of single-char tokens (the max # unique terms will at most be 26).
/// puts the # unique terms into expected, to be checked against the norm.
/// </summary>
private string AddValue()
{
StringBuilder sb = new StringBuilder();
Expand All @@ -99,12 +98,11 @@ private string AddValue()
return sb.toString();
}

/**
* Simple similarity that encodes maxTermFrequency directly
*/
/// <summary>
/// Simple similarity that encodes maxTermFrequency directly
/// </summary>
internal class TestSimilarity : Similarity
{

public override long ComputeNorm(FieldInvertState state)
{
return state.UniqueTermCount;
Expand Down

0 comments on commit d41501f

Please sign in to comment.