Open DinaWork opened 7 years ago
This is because you have disabled the strict mode. This means that the actual String can have 'lesser' fields than the expected fields. JSONAssert.assertEquals("{}", "{a:123}", true);
should fail the test.
@carterpage any comments on this one?
JSONAssert.assertEquals("{}", "{a:123}", false); // passes
A note:
JSONAssert.assertEquals("{a:123}","{}", false);
andJSONAssert.assertEquals("{}", "{a:123}", true);
do throw an exception