forked from JavaTX/JavaCompilerCore
Reduziertes Testbeispiel angefügt
This commit is contained in:
parent
383e5bd883
commit
51e0d96174
@ -0,0 +1,24 @@
|
||||
import java.util.Vector;
|
||||
|
||||
class Matrix extends Vector<Vector<Integer>> {
|
||||
|
||||
Matrix mul(Matrix m){
|
||||
Matrix ret;
|
||||
ret = new Matrix();
|
||||
Integer i;
|
||||
i = 0;
|
||||
while(i < this.size()) {
|
||||
Vector<Integer> v1;
|
||||
Vector<Integer> v2;
|
||||
v1 = this.elementAt(i);
|
||||
v2 = new Vector<Integer>();
|
||||
Integer j;
|
||||
j = 0;
|
||||
|
||||
ret.addElement(v2);
|
||||
i++;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package plugindevelopment.TypeInsertTests;
|
||||
|
||||
import java.util.Vector;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class ypedMatrixSimpleTest {
|
||||
private static final String TEST_FILE = "TypedMatrixSimpleTest.jav";
|
||||
|
||||
@Test
|
||||
public void run(){
|
||||
Vector<String> mustContain = new Vector<String>();
|
||||
mustContain.add("Integer erg;");
|
||||
MultipleTypesInsertTester.testSingleInsert(this.TEST_FILE, mustContain);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user