Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/main/java/org/assertj/db/type/Value.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
package org.assertj.db.type;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;
Expand Down Expand Up @@ -82,7 +83,8 @@ static ValueType getType(Object object) {
|| object instanceof Long
|| object instanceof Float
|| object instanceof Double
|| object instanceof BigDecimal) {
|| object instanceof BigDecimal
|| object instanceof BigInteger) {

return ValueType.NUMBER;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ public void test_are_equal_for_double_and_string() throws Exception {
*/
@Test
public void test_are_equal_for_biginteger_and_string() throws Exception {
assertThat(Values.areEqual(getValue(null, new BigInteger("1")), (Object) "1")).isFalse();
assertThat(Values.areEqual(getValue(null, new BigInteger("1")), (Object) "1")).isTrue();
assertThat(Values.areEqual(getValue(null, new BigInteger("2")), (Object) "1")).isFalse();
}

Expand Down