MCPcopy Create free account
hub / github.com/LianjiaTech/json-diff / diff

Method diff

src/test/java/com/ke/diff/diff/DiffTest.java:30–36  ·  view source on GitHub ↗

测试withA withB diff方法

()

Source from the content-addressed store, hash-verified

28 * 测试withA withB diff方法
29 */
30 @Test
31 public void diff() {
32 String str1 = "{\"a\":null}";
33 String str2 = "{\"a\":\"\"}";
34 List<Result> diff = new Diff().diff(str1,str2);
35 assertEquals(ResultConvertUtil.TYPE_MODIFY,diff.get(0).getDiffType());
36 }
37
38 /**
39 * 测试withNoisePahList方法

Callers

nothing calls this directly

Calls 2

getDiffTypeMethod · 0.80
diffMethod · 0.65

Tested by

no test coverage detected