@@ -541,13 +541,13 @@ public void sum_notSupported() {
541
541
public void avg_noData () {
542
542
Query <TestEntity > baseQuery = box .query ().build ();
543
543
// Integer.
544
- assertEquals (0 , baseQuery .property (simpleByte ).avg (), 0.0001 );
545
- assertEquals (0 , baseQuery .property (simpleShort ).avg (), 0.0001 );
546
- assertEquals (0 , baseQuery .property (simpleInt ).avg (), 0.0001 );
547
- assertEquals (0 , baseQuery .property (simpleLong ).avg (), 0.0001 );
544
+ assertEquals (Double . NaN , baseQuery .property (simpleByte ).avg (), 0.0 );
545
+ assertEquals (Double . NaN , baseQuery .property (simpleShort ).avg (), 0.0 );
546
+ assertEquals (Double . NaN , baseQuery .property (simpleInt ).avg (), 0.0 );
547
+ assertEquals (Double . NaN , baseQuery .property (simpleLong ).avg (), 0.0 );
548
548
// Float.
549
- assertEquals (0 , baseQuery .property (simpleFloat ).avg (), 0.0001 );
550
- assertEquals (0 , baseQuery .property (simpleDouble ).avg (), 0.0001 );
549
+ assertEquals (Double . NaN , baseQuery .property (simpleFloat ).avg (), 0.0 );
550
+ assertEquals (Double . NaN , baseQuery .property (simpleDouble ).avg (), 0.0 );
551
551
}
552
552
553
553
@ Test
0 commit comments