From ee04b67aff3988cbde6e99f16b5b76daeda6942f Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Tue, 27 Mar 2018 12:59:51 -0700 Subject: [PATCH] Adding Query Tests for NaN and Null (#168) --- conformance/runner.js | 2 ++ conformance/test-suite.binproto | Bin 27828 -> 28098 bytes 2 files changed, 2 insertions(+) diff --git a/conformance/runner.js b/conformance/runner.js index f54ccef64..71a59e914 100644 --- a/conformance/runner.js +++ b/conformance/runner.js @@ -65,6 +65,8 @@ const convertInput = { return convertObject(value); } else if (is.array(value)) { return convertArray(value); + } else if (value === 'NaN') { + return NaN; } else if (value === 'Delete') { return Firestore.FieldValue.delete(); } else if (value === 'ServerTimestamp') { diff --git a/conformance/test-suite.binproto b/conformance/test-suite.binproto index 06bcd2989c30f8a2bd6f06f3f8d5dbe8c7326fa3..a189342735ffc66ce0af16f4225256bd26770359 100644 GIT binary patch delta 284 zcmdmTlkw1P#tl|XlY^KvCdWEUY_4MZz^BO0#aJiAB)}vjz{RK~#BIdM1r*T(iZF7O zaVZw3mP}4$mD{{h(2j#I39Jq%od}ZN{8jQ3^W+awEL?0LEone8*3DmKJ8g7Z7`fC7 zOH+#~trQX!!ZT8fQWcVO5=)DLRDNzjVo_#Zx~W+6srDNZSN4rUNDkqc<78WG0&CHgr