Skip to content

Commit 36e2c6b

Browse files
Adding Query Tests for NaN and Null (#3091)
1 parent 4e84883 commit 36e2c6b

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

google-cloud-firestore/src/test/java/com/google/cloud/firestore/ConformanceTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ private Object convertValue(Object data) {
208208
return convertMap((Map<String, Object>) data);
209209
} else if (data instanceof List) {
210210
return convertArray((List<Object>) data);
211+
} else if ("NaN".equals(data)) {
212+
return Double.NaN;
211213
} else if ("Delete".equals(data)) {
212214
return FieldValue.delete();
213215
} else if ("ServerTimestamp".equals(data)) {
270 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)