diff options
author | bloodstalker <thabogre@gmail.com> | 2016-11-25 21:25:03 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2016-11-25 21:25:03 +0000 |
commit | 94981b600c905e3158f3f12a0a33a31d0bd6f0e1 (patch) | |
tree | 83dbf38fba6cd8117303235fac8de5850026d1db /test | |
parent | added 13.4 nad 13.6 (diff) | |
download | mutator-94981b600c905e3158f3f12a0a33a31d0bd6f0e1.tar.gz mutator-94981b600c905e3158f3f12a0a33a31d0bd6f0e1.zip |
added tdd tests for 13.4 and 13.6
Diffstat (limited to 'test')
-rw-r--r-- | test/main.c | 2 | ||||
-rw-r--r-- | test/testFuncs1.c | 32 | ||||
-rw-r--r-- | test/testFuncs1.h | 2 |
3 files changed, 36 insertions, 0 deletions
diff --git a/test/main.c b/test/main.c index c8fdad0..931545d 100644 --- a/test/main.c +++ b/test/main.c @@ -72,5 +72,7 @@ main() test24(); test25(); test26(); + test27(); + test28(); } /*intentionally left blank.*/ diff --git a/test/testFuncs1.c b/test/testFuncs1.c index 1a9dbb2..8971f27 100644 --- a/test/testFuncs1.c +++ b/test/testFuncs1.c @@ -985,5 +985,37 @@ void test26 (void) d = (a <= c);
}
+void test27(void)
+{
+ double a;
+
+ for (a = 0.0; a < 10.0; ++a)
+ {}
+}
+
+void test28(void)
+{
+ int i;
+ int j;
+ int k;
+
+ for (i = 0; i < 10; ++i)
+ {
+ i = i + 3;
+ }
+
+ for (j = 0; j < 20; ++j)
+ {
+ j++;
+ }
+
+ for (k = 0; k < 10; ++k)
+ {
+ k = i + j;
+ --j;
+ i = j - k;
+ }
+}
+
/**********************************************************************************************************************/
/*the last line's been intentionally left blank.*/
diff --git a/test/testFuncs1.h b/test/testFuncs1.h index 356b2cc..f9b84ef 100644 --- a/test/testFuncs1.h +++ b/test/testFuncs1.h @@ -122,6 +122,8 @@ void test23(void); void test24(void);
void test25(void);
void test26(void);
+void test27(void);
+void test28(void);
/***********************************************************************************************************/
/*ive been intentionally left blank. dont touch me.*/
|