Beispiel #1
0
 /**
  * Test.
  *
  * @param v1 the v1
  * @param v2 the v2
  * @throws IOException Signals that an I/O exception has occurred.
  */
 public void test(String v1, String v2) throws IOException {
   CharSequence string = Delta.toString(forFile(v1));
   CharSequence string2 = Delta.toString(forFile(v2));
   Delta d = new Delta();
   String delta = d.compute(string, string2);
   // System.err.println(delta);
   // System.err.println("----");
   String string3 = new TextPatcher(string).patch(delta);
   // System.out.println(string3);
   assertEquals(string2.toString(), string3);
 }