Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upTest::Mojo->json_is(): misleading output on some test failures #1456
Comments
|
How do you suggest this to be fixed @DrHyde? |
|
My plan was to factor out the important bit of |
|
FYI ... work in progress. Still need to muck about with |
|
The problem with DrHyde@3417e72#diff-a3cb567ecd4d756d754d1baee62ee931R215 is that it ignores |
|
Hurrah for code review :-) |
DrHyde
mentioned this issue
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


When testing a JSON value like
{ "fruit": "lemon" }with...->json_is('/animal', 'bat')we correctly get a failure, but the diagnostic message complains thatundefdoesn't equal'bat'which isn't quite right. The value isn't even undef, it doesn't exist. Same applies tojson_like.