Skip to content

Commit f3e547e

Browse files
PropertyQueryTest: avg supports boolean.
1 parent 453265a commit f3e547e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/objectbox-java-test/src/test/java/io/objectbox/query/PropertyQueryTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,7 @@ public void testAggregates() {
693693
PropertyQuery floatQuery = query.property(simpleFloat);
694694
PropertyQuery doubleQuery = query.property(simpleDouble);
695695
// avg
696+
assertEquals(0.5, booleanQuery.avg(), 0.0001);
696697
assertEquals(-37.5, byteQuery.avg(), 0.0001);
697698
assertEquals(2100.5, shortQuery.avg(), 0.0001);
698699
assertEquals(2000.5, intQuery.avg(), 0.0001);

0 commit comments

Comments
 (0)