Skip to content

Commit

Permalink
made some more tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
burner committed Aug 4, 2023
1 parent fc4ebf9 commit 3ae8ef5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/graphql/helper.d
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,10 @@ unittest {
f = j.getWithPath2("name.foo");
enforce(f.to!int() == 13);

Json h = j.getWithPath("doesnotexist");
Json h = j.getWithPath2("doesnotexist");
assert(h.type == Json.Type.null_);

h = j.getWithPath("name.alsoNotThere");
h = j.getWithPath2("name.alsoNotThere");
assert(h.type == Json.Type.null_);
}

Expand Down

0 comments on commit 3ae8ef5

Please sign in to comment.