Skip to content

Commit d289f8d

Browse files
committed
fixed assertions on arangosearch numbers
1 parent e118669 commit d289f8d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/java/com/arangodb/ArangoSearchTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,9 @@ private void compareProperties(Map<String, Object> actualProperties, Map<String,
334334
assertThat(expectedValue, notNullValue());
335335
assertThat(expectedValue, instanceOf(Map.class));
336336
compareProperties((Map) value, (Map) expectedValue);
337-
} else {
337+
} else if(value instanceof Number){
338+
assertThat(Double.valueOf(value.toString()), is(Double.valueOf(expectedValue.toString())));
339+
}else {
338340
assertThat(value, is(expectedValue));
339341
}
340342
});

0 commit comments

Comments
 (0)