[java] fix indent

update-fork
MITSUNARI Shigeo 5 years ago
parent d403ab84c6
commit dd19f1c350
  1. 16
      ffi/java/MclTest.java

@ -11,13 +11,13 @@ public class MclTest {
System.out.println("libName : " + libName); System.out.println("libName : " + libName);
System.loadLibrary(lib); System.loadLibrary(lib);
} }
public static int errN = 0; public static int errN = 0;
public static void assertEquals(String msg, String x, String y) { public static void assertEquals(String msg, String x, String y) {
if (x.equals(y)) { if (x.equals(y)) {
System.out.println("OK : " + msg); System.out.println("OK : " + msg);
} else { } else {
System.out.println("NG : " + msg + ", x = " + x + ", y = " + y); System.out.println("NG : " + msg + ", x = " + x + ", y = " + y);
errN++; errN++;
} }
} }
public static void assertBool(String msg, boolean b) { public static void assertBool(String msg, boolean b) {
@ -25,7 +25,7 @@ public class MclTest {
System.out.println("OK : " + msg); System.out.println("OK : " + msg);
} else { } else {
System.out.println("NG : " + msg); System.out.println("NG : " + msg);
errN++; errN++;
} }
} }
public static void testCurve(int curveType, String name) { public static void testCurve(int curveType, String name) {
@ -109,11 +109,11 @@ public class MclTest {
assertBool("e1 == e2", e1.equals(e2)); assertBool("e1 == e2", e1.equals(e2));
BLSsignature(Q); BLSsignature(Q);
if (errN == 0) { if (errN == 0) {
System.out.println("all test passed"); System.out.println("all test passed");
} else { } else {
System.out.println("ERR=" + errN); System.out.println("ERR=" + errN);
} }
} catch (RuntimeException e) { } catch (RuntimeException e) {
System.out.println("unknown exception :" + e); System.out.println("unknown exception :" + e);
} }

Loading…
Cancel
Save