File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
tests/objectbox-java-test/src/test/java/io/objectbox/query Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -603,8 +603,8 @@ public void avg_positiveOverflow() {
603
603
putTestEntityFloat (1 , 1 );
604
604
605
605
Query <TestEntity > baseQuery = box .query ().build ();
606
- assertEquals (Float .NaN , baseQuery .property (simpleFloat ).avg (), 0.001 );
607
- assertEquals (Double .NaN , baseQuery .property (simpleDouble ).avg (), 0.001 );
606
+ assertEquals (Float .POSITIVE_INFINITY , baseQuery .property (simpleFloat ).avg (), 0.001 );
607
+ assertEquals (Double .POSITIVE_INFINITY , baseQuery .property (simpleDouble ).avg (), 0.001 );
608
608
}
609
609
610
610
@ Test
@@ -613,8 +613,8 @@ public void avg_negativeOverflow() {
613
613
putTestEntityFloat (-1 , -1 );
614
614
615
615
Query <TestEntity > baseQuery = box .query ().build ();
616
- assertEquals (Float .NaN , baseQuery .property (simpleFloat ).avg (), 0.001 );
617
- assertEquals (Double .NaN , baseQuery .property (simpleDouble ).avg (), 0.001 );
616
+ assertEquals (Float .NEGATIVE_INFINITY , baseQuery .property (simpleFloat ).avg (), 0.001 );
617
+ assertEquals (Double .NEGATIVE_INFINITY , baseQuery .property (simpleDouble ).avg (), 0.001 );
618
618
}
619
619
620
620
@ Test
You can’t perform that action at this time.
0 commit comments