nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8e01f9
)
tests/neo4j: hardening the test not_empty to `length == 1`
author
Jean Privat
<jean@pryen.org>
Thu, 15 Jun 2017 13:18:58 +0000
(09:18 -0400)
committer
Jean Privat
<jean@pryen.org>
Thu, 15 Jun 2017 13:18:58 +0000
(09:18 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>
tests/test_neo4j.nit
patch
|
blob
|
history
diff --git
a/tests/test_neo4j.nit
b/tests/test_neo4j.nit
index
16038e9
..
5da93bb
100644
(file)
--- a/
tests/test_neo4j.nit
+++ b/
tests/test_neo4j.nit
@@
-126,5
+126,5
@@
var query = (new CypherQuery).
nand("n.key = {key}").
nreturn("n, r, m")
var res7 = client.cypher(query)
-assert not res7.as(JsonObject)["data"].as(JsonArray).is_empty
+assert res7.as(JsonObject)["data"].as(JsonArray).length == 1