SOLR-3209 -- sorry

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1298659 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2012-03-08 23:59:34 +00:00
parent aaa129c37b
commit 29a1f13e35
1 changed files with 2 additions and 2 deletions

View File

@ -738,7 +738,7 @@ abstract public class SolrExampleTests extends SolrJettyTestBase
assertNotNull( stats ); assertNotNull( stats );
assertEquals( 5.0, ((Double)stats.getMin()).doubleValue(), 0 ); assertEquals( 5.0, ((Double)stats.getMin()).doubleValue(), 0 );
assertEquals( 20.0, ((Double)stats.getMin()).doubleValue(), 0 ); assertEquals( 20.0, ((Double)stats.getMax()).doubleValue(), 0 );
assertEquals( new Long(nums.length), stats.getCount() ); assertEquals( new Long(nums.length), stats.getCount() );
assertEquals( new Long(0), stats.getMissing() ); assertEquals( new Long(0), stats.getMissing() );
@ -782,7 +782,7 @@ abstract public class SolrExampleTests extends SolrJettyTestBase
assertEquals( inStockF.getCount(), inStockT.getCount() ); assertEquals( inStockF.getCount(), inStockT.getCount() );
assertEquals( stats.getCount().longValue(), inStockF.getCount()+inStockT.getCount() ); assertEquals( stats.getCount().longValue(), inStockF.getCount()+inStockT.getCount() );
assertTrue( "check that min max faceted ok", ((Double)inStockF.getMin()).doubleValue() > ((Double)inStockF.getMax()).doubleValue() ); assertTrue( "check that min max faceted ok", ((Double)inStockF.getMin()).doubleValue() < ((Double)inStockF.getMax()).doubleValue() );
assertEquals( "they have the same distribution", inStockF.getStddev(), inStockT.getStddev() ); assertEquals( "they have the same distribution", inStockF.getStddev(), inStockT.getStddev() );
} }