parser: test verzeichnis verschoben
authorBernhard Urban <lewurm@gmail.com>
Thu, 18 Mar 2010 14:47:23 +0000 (15:47 +0100)
committerBernhard Urban <lewurm@gmail.com>
Thu, 18 Mar 2010 14:47:26 +0000 (15:47 +0100)
folgendes ausfuehren, dass es dann passt...
> cd && ln -s ~/abgabe/test/ test

parser/09test.sh
parser/test/a.0 [deleted file]
parser/test/a.1 [deleted file]
parser/test/a.2 [deleted file]
test/parser/a.0 [new file with mode: 0644]
test/parser/a.1 [new file with mode: 0644]
test/parser/a.2 [new file with mode: 0644]

index 548ac36bced34b26c95ec998238e65237d5dfc93..ab339354589b87c541393abe59b7a92d4240ab64 100755 (executable)
@@ -7,7 +7,7 @@ PROGRAM=./$beispiel
 errnum=0
 prgnum=0
 
-LOC=~/abgabe/$beispiel/test
+LOC=~/test/$beispiel/
 
 for i in $LOC/*.[012]
 do
diff --git a/parser/test/a.0 b/parser/test/a.0
deleted file mode 100644 (file)
index c8626b7..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-struct mystruct end;
-method f ()
-       var muh := 0x10;
-       muh := muh * -2;
-       /* test comment */
-       /* groeserer comemnt
-
-       */
-       if (muh < -0x5) then
-               muh := muh * -2;
-       else
-               muh := 0x55;
-       end;
-
-       while (muh < 10) do
-               muh := muh * -2;
-       end;
-
-       /* warum geht das nciht? */
-       while (muh < 10) do
-               muh := muh - 2;
-       end;
-
-       return muh;
-end;
diff --git a/parser/test/a.1 b/parser/test/a.1
deleted file mode 100644 (file)
index 48d19b3..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-method f ()
-       var muh # 0x10;
-       muh := muh * -2;
-end;
diff --git a/parser/test/a.2 b/parser/test/a.2
deleted file mode 100644 (file)
index a59ac9c..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-method f ()
-       var muh := 0x10;
-       muh = muh * -2;
-end;
diff --git a/test/parser/a.0 b/test/parser/a.0
new file mode 100644 (file)
index 0000000..c8626b7
--- /dev/null
@@ -0,0 +1,25 @@
+struct mystruct end;
+method f ()
+       var muh := 0x10;
+       muh := muh * -2;
+       /* test comment */
+       /* groeserer comemnt
+
+       */
+       if (muh < -0x5) then
+               muh := muh * -2;
+       else
+               muh := 0x55;
+       end;
+
+       while (muh < 10) do
+               muh := muh * -2;
+       end;
+
+       /* warum geht das nciht? */
+       while (muh < 10) do
+               muh := muh - 2;
+       end;
+
+       return muh;
+end;
diff --git a/test/parser/a.1 b/test/parser/a.1
new file mode 100644 (file)
index 0000000..48d19b3
--- /dev/null
@@ -0,0 +1,4 @@
+method f ()
+       var muh # 0x10;
+       muh := muh * -2;
+end;
diff --git a/test/parser/a.2 b/test/parser/a.2
new file mode 100644 (file)
index 0000000..a59ac9c
--- /dev/null
@@ -0,0 +1,4 @@
+method f ()
+       var muh := 0x10;
+       muh = muh * -2;
+end;