changeset 724:4b4a67896fe3 draft

New tests added into d2i.clj.
author Pavel Tisnovsky <ptisnovs@redhat.com>
date Tue, 12 Apr 2016 11:48:36 +0200
parents 05e7104e1bea
children b6e27ddd087c
files ChangeLog src/tests/d2i.clj
diffstat 2 files changed, 103 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Apr 12 11:33:14 2016 +0200
+++ b/ChangeLog	Tue Apr 12 11:48:36 2016 +0200
@@ -1,3 +1,8 @@
+2016-04-12  Pavel Tisnovsky  <ptisnovs@redhat.com>
+
+	* src/tests/d2i.clj:
+	New tests added into d2i.clj.
+
 2016-04-12  Pavel Tisnovsky  <ptisnovs@redhat.com>
 
 	* src/tests/d2i.clj:
--- a/src/tests/d2i.clj	Tue Apr 12 11:33:14 2016 +0200
+++ b/src/tests/d2i.clj	Tue Apr 12 11:48:36 2016 +0200
@@ -544,6 +544,104 @@
         [:ireturn]
     ])
 
+(def test-32765-instruction-sequence
+    [
+        [:dconst -32765]
+        [:d2i]
+        [:ireturn]
+    ])
+
+(def test-32766-instruction-sequence
+    [
+        [:dconst -32766]
+        [:d2i]
+        [:ireturn]
+    ])
+
+(def test-32767-instruction-sequence
+    [
+        [:dconst -32767]
+        [:d2i]
+        [:ireturn]
+    ])
+
+(def test-32768-instruction-sequence
+    [
+        [:dconst -32768]
+        [:d2i]
+        [:ireturn]
+    ])
+
+(def test-32769-instruction-sequence
+    [
+        [:dconst -32769]
+        [:d2i]
+        [:ireturn]
+    ])
+
+(def test-32770-instruction-sequence
+    [
+        [:dconst -32770]
+        [:d2i]
+        [:ireturn]
+    ])
+
+(def test-32771-instruction-sequence
+    [
+        [:dconst -32771]
+        [:d2i]
+        [:ireturn]
+    ])
+
+(def test-65533-instruction-sequence
+    [
+        [:dconst -65533]
+        [:d2i]
+        [:ireturn]
+    ])
+
+(def test-65534-instruction-sequence
+    [
+        [:dconst -65534]
+        [:d2i]
+        [:ireturn]
+    ])
+
+(def test-65535-instruction-sequence
+    [
+        [:dconst -65535]
+        [:d2i]
+        [:ireturn]
+    ])
+
+(def test-65536-instruction-sequence
+    [
+        [:dconst -65536]
+        [:d2i]
+        [:ireturn]
+    ])
+
+(def test-65537-instruction-sequence
+    [
+        [:dconst -65537]
+        [:d2i]
+        [:ireturn]
+    ])
+
+(def test-65538-instruction-sequence
+    [
+        [:dconst -65538]
+        [:d2i]
+        [:ireturn]
+    ])
+
+(def test-65539-instruction-sequence
+    [
+        [:dconst -65539]
+        [:d2i]
+        [:ireturn]
+    ])
+
 (defn generate-test
     "Method called by the Bytecode synth core to generate test class."
     [generated-class]