Skip to content
Permalink
Browse files
Fix testng.annotations.Test missing -- can't have @test functions in
main.
  • Loading branch information
leerho committed Oct 29, 2021
1 parent c710eb8 commit c9f2fb3b5d57d07b8d752031ca6b129146b1ccce
Showing 1 changed file with 17 additions and 19 deletions.
@@ -22,8 +22,6 @@
import java.util.HashMap;
import java.util.Map;

import org.testng.annotations.Test;

public class SetOperationCornerCases {
private static final long MAX = Long.MAX_VALUE;

@@ -161,21 +159,21 @@ public static int createCornerCaseId(
| (!emptyB ? 0 : 1);
}

@Test
public void checkById() {
final int[] ids = {0,1,2, 5, 6 };
final int len = ids.length;
for (int i = 0; i < len; i++) {
for (int j = 0; j < len; j++) {
final int id = ids[i] << 3 | ids[j];
final CornerCase cCase = CornerCase.idToCornerCase(id);
final String interResStr = cCase.getInterResult().getDesc();
final String anotbResStr = cCase.getAnotbResult().getDesc();
println(Integer.toOctalString(id) + "\t" + cCase + "\t" + cCase.getDesc()
+ "\t" + interResStr + "\t" + anotbResStr);
}
}
}

private static void println(final Object o) { System.out.println(o.toString()); }
// @Test
// public void checkById() {
// final int[] ids = {0,1,2, 5, 6 };
// final int len = ids.length;
// for (int i = 0; i < len; i++) {
// for (int j = 0; j < len; j++) {
// final int id = ids[i] << 3 | ids[j];
// final CornerCase cCase = CornerCase.idToCornerCase(id);
// final String interResStr = cCase.getInterResult().getDesc();
// final String anotbResStr = cCase.getAnotbResult().getDesc();
// println(Integer.toOctalString(id) + "\t" + cCase + "\t" + cCase.getDesc()
// + "\t" + interResStr + "\t" + anotbResStr);
// }
// }
// }

// private static void println(final Object o) { System.out.println(o.toString()); }
}

0 comments on commit c9f2fb3

Please sign in to comment.