algesten / jsondiff

Structural JSON diff/patch tool.
Other
66 stars 27 forks source link

2 tests on latest code on master fail #17

Closed andrewmkhoury closed 10 years ago

andrewmkhoury commented 11 years ago

When I try to build the latest code using mvn package two of the tests fail.

T E S T S

Running foodev.jsondiff.JsonDiffTest Tests run: 120, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.781 sec <<< FAILURE! Running foodev.jsondiff.JsonPatchTest Tests run: 68, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.064 sec

Results :

Failed tests: testArrayObjectMutations0: expected:<..."k1v1","seq":1},"~a[[0]":{"value":"k2v2"},"~a[1]":{"name":"k6"},"~a[2]":{"value":"k3v1"},"~a[3]]":{"name":"k4","val...> but was:<..."k1v1","seq":1},"~a[[-1]":{"value":"k2v2"},"~a[0]":{"name":"k6"},"~a[1]":{"value":"k3v1"},"~a[2]]":{"name":"k4","val...> testArrayObjectMutations1: expected:<..."k1v1","seq":1},"~a[[0]":{"value":"k2v2"},"~a[1]":{"name":"k6"},"~a[2]":{"value":"k3v1"},"~a[3]]":{"name":"k4","val...> but was:<..."k1v1","seq":1},"~a[[-1]":{"value":"k2v2"},"~a[0]":{"name":"k6"},"~a[1]":{"value":"k3v1"},"~a[2]]":{"name":"k4","val...>

Tests run: 188, Failures: 2, Errors: 0, Skipped: 0

algesten commented 11 years ago

This is known. It's issue #14 that I don't know whether it's possible to solve.