File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
tests/objectbox-java-test/src/test/java/io/objectbox/query Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -624,6 +624,16 @@ public void sum_noData() {
624
624
@ Test
625
625
public void sumDouble_noData () {
626
626
Query <TestEntity > baseQuery = box .query ().build ();
627
+ // Integer.
628
+ assertEquals (0 , baseQuery .property (simpleByte ).sumDouble (), 0.0001 );
629
+ assertEquals (0 , baseQuery .property (simpleInt ).sumDouble (), 0.0001 );
630
+ assertEquals (0 , baseQuery .property (simpleShort ).sumDouble (), 0.0001 );
631
+ assertEquals (0 , baseQuery .property (simpleLong ).sumDouble (), 0.0001 );
632
+ // Integer treated as unsigned.
633
+ assertEquals (0 , baseQuery .property (simpleIntU ).sumDouble (), 0.0001 );
634
+ assertEquals (0 , baseQuery .property (simpleShortU ).sumDouble (), 0.0001 );
635
+ assertEquals (0 , baseQuery .property (simpleLongU ).sumDouble (), 0.0001 );
636
+ // Floating point.
627
637
assertEquals (0 , baseQuery .property (simpleFloat ).sumDouble (), 0.0001 );
628
638
assertEquals (0 , baseQuery .property (simpleDouble ).sumDouble (), 0.0001 );
629
639
}
You can’t perform that action at this time.
0 commit comments