From 84df9bd35407f92351300c1c70dea46842f62ae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Pl=C3=BCmicke?= Date: Wed, 23 Sep 2015 10:48:55 +0200 Subject: [PATCH] Id hinzugefuegt --- test/bytecode/Id.jav | 5 +++++ test/bytecode/IdTest.java | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 test/bytecode/Id.jav create mode 100644 test/bytecode/IdTest.java diff --git a/test/bytecode/Id.jav b/test/bytecode/Id.jav new file mode 100644 index 00000000..ceebc1f7 --- /dev/null +++ b/test/bytecode/Id.jav @@ -0,0 +1,5 @@ +class Id{ + +Fun1 method() { return (x)-> x; } + +} \ No newline at end of file diff --git a/test/bytecode/IdTest.java b/test/bytecode/IdTest.java new file mode 100644 index 00000000..f303e5d0 --- /dev/null +++ b/test/bytecode/IdTest.java @@ -0,0 +1,14 @@ +package bytecode; + +import org.junit.Test; + +public class IdTest { + public final static String rootDirectory = System.getProperty("user.dir")+"/test/bytecode/"; + public final static String testFile = "Id.jav"; + public final static String outputFile = "Id.class"; + + @Test + public void test() { + SingleClassTester.compileToBytecode(rootDirectory+testFile, rootDirectory+outputFile); + } +}