Add OrCOnsTest

This commit is contained in:
Andreas Stadelmeier 2024-06-28 11:32:32 +02:00
parent fcda301b1e
commit a7ad4fa984
5 changed files with 61 additions and 4 deletions

View File

@ -1,4 +1,9 @@
Prototype Prototype
run with: run with:
mvn test -Dtest="TestComplete#matrixTest" mvn test -Dtest="TestComplete#matrixTest"
mvn test -Dtest="typeinference.JavaTXCompilerTest#importTest"
then the output is in: /tmp/output

View File

@ -53,8 +53,8 @@ http://maven.apache.org/maven-v4_0_0.xsd">
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version> <version>3.11.0</version>
<configuration> <configuration>
<source>21</source> <source>22</source>
<target>21</target> <target>22</target>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>

View File

@ -36,7 +36,7 @@ public class TYPE {
ret.addAll(getConstraintsClass(cl, new TypeInferenceInformation(allClasses))); ret.addAll(getConstraintsClass(cl, new TypeInferenceInformation(allClasses)));
} }
writeASP(ret); writeASP(ret);
System.exit(0); //System.exit(0);
return ret; return ret;
} }

View File

@ -34,7 +34,7 @@ public class JavaTXCompilerTest {
@Test @Test
public void importTest() throws IOException, ClassNotFoundException { public void importTest() throws IOException, ClassNotFoundException {
execute(new File(rootDirectory + "Import.jav")); execute(new File(rootDirectory + "OrConsTest.jav"));
} }
@Test @Test

View File

@ -0,0 +1,52 @@
import java.lang.Integer;
import java.lang.String;
public class OrConsTest {
ol(var1) {
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
var1.equals(var1);
return new OrConsTest();
}
}