summaryrefslogtreecommitdiffstats
path: root/src/test/misc/MiscTest.java
diff options
context:
space:
mode:
authorStiver <stiver.mail@gmail.com>2014-03-04 15:13:11 +0100
committerStiver <stiver.mail@gmail.com>2014-03-04 15:13:11 +0100
commite2d0f5d9c38561d67f23754c00addb4a3547efb2 (patch)
tree1832f16037c086b48266b8566aecc61f45f4e5f1 /src/test/misc/MiscTest.java
downloadfernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.tar
fernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.tar.gz
fernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.tar.lz
fernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.tar.xz
fernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.zip
initial commit
Diffstat (limited to 'src/test/misc/MiscTest.java')
-rw-r--r--src/test/misc/MiscTest.java83
1 files changed, 83 insertions, 0 deletions
diff --git a/src/test/misc/MiscTest.java b/src/test/misc/MiscTest.java
new file mode 100644
index 0000000..c47b3da
--- /dev/null
+++ b/src/test/misc/MiscTest.java
@@ -0,0 +1,83 @@
+package test.misc;
+
+public class MiscTest {
+
+ public static double test = 1 / 0;
+
+
+ public static void main(String[] args) {
+
+ System.out.println(test);
+
+ String s = "a b";
+ s = s.replaceAll(" ", " &nbsp");
+ System.out.println(s);
+
+ try {
+ throw null;
+ } catch(RuntimeException ex) {
+ System.out.println(ex);
+ }
+
+
+ int a = 3;
+
+ if(a == 1) {
+ System.out.println("1");
+ } else if(a == 2) {
+ System.out.println("2");
+ } else if(a == 3) {
+ System.out.println("3");
+ } else if(a == 4) {
+ System.out.println("4");
+ } else if(a == 5) {
+ System.out.println("5");
+ } else if(a == 6) {
+ System.out.println("6");
+ } else if(a == 7) {
+ System.out.println("7");
+ }
+
+ if(a == 0) {
+ return;
+ } else {
+ System.out.println("0");
+ }
+
+ if(a==4) {
+ System.out.println("assert");
+ assert a==4 && a==5;
+ } else {
+ assert false;
+ }
+
+ assert a==5: Math.random();
+
+ assert false: Math.random();
+
+ assert true;
+
+ assert true: Math.random();
+
+ /*
+ label: {
+ if(a == 0) {
+ System.out.println("0");
+ } else if(a == 1) {
+ System.out.println("01");
+ } else {
+ if(a == -1) {
+ System.out.println("-1");
+ } else {
+ System.out.println("-2");
+ }
+ break label;
+ }
+
+ System.out.println("end");
+ }
+ System.out.println("end1");
+ */
+ }
+
+}