Add float to test case to check leading zeroes in exponent parts (#363)

* add float to test case to check leading zeroes in exponent parts

* add testcase for query pkg
This commit is contained in:
Riya John
2020-04-22 08:15:49 +05:30
committed by GitHub
parent e872682c78
commit 24d4446802
5 changed files with 10 additions and 1 deletions
+5 -1
View File
@@ -407,7 +407,10 @@ func TestQueryFilterFn(t *testing.T) {
assertQueryPositions(t, string(buff),
"$..[?(float)]",
[]interface{}{ // no float values in document
[]interface{}{
queryTestNode{
4e-08, toml.Position{30, 1},
},
})
tv, _ := time.Parse(time.RFC3339, "1979-05-27T07:32:00Z")
@@ -460,6 +463,7 @@ func TestQueryFilterFn(t *testing.T) {
[]interface{}{"gamma", "delta"},
[]interface{}{int64(1), int64(2)},
},
"score": 4e-08,
}, toml.Position{28, 1},
},
})