Skip to content

Commit

Permalink
All tests pass! Closes #39
Browse files Browse the repository at this point in the history
  • Loading branch information
holograph committed Jul 25, 2017
1 parent d422d33 commit 1b2dbb8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,11 @@ else if (parentNode.isArray()) {
else {
final ObjectNode target = (ObjectNode) parentNode;
String key = path.get(path.size() - 1).replaceAll("\"", "");
if(!target.get(key).equals(value)){
JsonNode actual = target.get(key);
if (actual == null)
error(Operation.TEST, "noSuchPath in source, path provided : " + path);
else if (!actual.equals(value))
error(Operation.TEST, "value mismatch");
}
}
}
}
Expand Down

0 comments on commit 1b2dbb8

Please sign in to comment.