Lucene.Net.Search.TestSloppyPhraseQuery.TestDoc1_Query1_All_Slops_Should_match C# (CSharp) Method

TestDoc1_Query1_All_Slops_Should_match() private method

private TestDoc1_Query1_All_Slops_Should_match ( ) : void
return void
        public virtual void TestDoc1_Query1_All_Slops_Should_match()
        {
            for (int slop = 0; slop < 30; slop++)
            {
                float freq1 = CheckPhraseQuery(DOC_1, QUERY_1, slop, 1);
                float freq2 = CheckPhraseQuery(DOC_1_B, QUERY_1, slop, 1);
                Assert.IsTrue(freq2 > freq1, "slop=" + slop + " freq2=" + freq2 + " should be greater than score1 " + freq1);
            }
        }