commit f6ced226fa9ddef9c397485436caf47296326f1c
parent 5708cfdbec0b1dbed5ccdbf751fc185c29ba5a28
Author: kyle <kyle@getaddrinfo.net>
Date: Sun, 1 Nov 2015 20:21:13 -0700
tests: shuffle
Diffstat:
10 files changed, 38 insertions(+), 38 deletions(-)
diff --git a/tests/if_statement/Makefile b/tests/if/Makefile
diff --git a/tests/if_statement/if.c b/tests/if/if.c
diff --git a/tests/if/if.c.inst_good b/tests/if/if.c.inst_good
@@ -0,0 +1,23 @@
+unsigned int lines[198];
+int size = 198;
+char file_name[] = "/home/kyle/src/scv/tests/if/if.c";
+#include <stdlib.h>
+
+int
+main(int argc, char *argv[])
+{
+ if ((lines[6] = 1, argc == 1))
+ return (lines[7] = 1, 1);
+ else
+ (lines[9] = 1, exit(14));
+
+ if ((lines[11] = 1, argc == 2)) {
+ return (lines[12] = 1, 5);
+ }
+ else if ((lines[14] = 1, argc == 3)) {
+ return (lines[15] = 1, 0);
+ }
+ else {
+ (lines[18] = 1, exit(0));
+ }
+}
diff --git a/tests/if_statement/test.sh b/tests/if/test.sh
diff --git a/tests/if_statement/if.c.inst_good b/tests/if_statement/if.c.inst_good
@@ -1,23 +0,0 @@
-unsigned int lines[198];
-int size = 198;
-char file_name[] = "/home/kyle/src/scv/tests/if_statement/if.c";
-#include <stdlib.h>
-
-int
-main(int argc, char *argv[])
-{
- if ((lines[6] = 1, argc == 1))
- return (lines[7] = 1, 1);
- else
- (lines[9] = 1, exit(14));
-
- if ((lines[11] = 1, argc == 2)) {
- return (lines[12] = 1, 5);
- }
- else if ((lines[14] = 1, argc == 3)) {
- return (lines[15] = 1, 0);
- }
- else {
- (lines[18] = 1, exit(0));
- }
-}
diff --git a/tests/while_loops/Makefile b/tests/while/Makefile
diff --git a/tests/while_loops/test.sh b/tests/while/test.sh
diff --git a/tests/while_loops/while.c b/tests/while/while.c
diff --git a/tests/while/while.c.inst_good b/tests/while/while.c.inst_good
@@ -0,0 +1,15 @@
+unsigned int lines[76];
+int size = 76;
+char file_name[] = "/home/kyle/src/scv/tests/while/while.c";
+int
+main(void)
+{
+ int i;
+
+ i = 0;
+ while ((lines[7] = 1, i < 10)) {
+ i++;
+ }
+
+ return (lines[11] = 1, i);
+}
diff --git a/tests/while_loops/while.c.inst_good b/tests/while_loops/while.c.inst_good
@@ -1,15 +0,0 @@
-unsigned int lines[76];
-int size = 76;
-char file_name[] = "/home/kyle/src/scv/tests/while_loops/while.c";
-int
-main(void)
-{
- int i;
-
- i = 0;
- while ((lines[7] = 1, i < 10)) {
- i++;
- }
-
- return (lines[11] = 1, i);
-}