summaryrefslogtreecommitdiffstats
path: root/test/003-omnibus-opcodes/src/Main.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/003-omnibus-opcodes/src/Main.java')
-rw-r--r--test/003-omnibus-opcodes/src/Main.java15
1 files changed, 6 insertions, 9 deletions
diff --git a/test/003-omnibus-opcodes/src/Main.java b/test/003-omnibus-opcodes/src/Main.java
index fb39d76..eecead0 100644
--- a/test/003-omnibus-opcodes/src/Main.java
+++ b/test/003-omnibus-opcodes/src/Main.java
@@ -22,15 +22,6 @@ public class Main {
* Start up.
*/
public static void main(String[] args) {
- boolean assertEnabled = false;
- assert assertEnabled = true;
- if (!assertEnabled) {
- System.out.println("FAIL: assert doesn't work (specify '-ea')\n");
- throw new RuntimeException();
- } else {
- System.out.println("(assertions are enabled)");
- }
-
Main main = new Main();
main.run();
@@ -79,4 +70,10 @@ public class Main {
}
InternedString.run();
}
+
+ public static void assertTrue(boolean condition) {
+ if (!condition) {
+ throw new Error();
+ }
+ }
}