aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2016-11-25 09:48:07 +0000
committerbloodstalker <thabogre@gmail.com>2016-11-25 09:48:07 +0000
commit83e829148427d211a291028a492c62e848a5d237 (patch)
treed364eed2b85b7475f831ab98c30b9ed779de20df /test
parentadded 12.9,12.10 and 12 (diff)
downloadmutator-83e829148427d211a291028a492c62e848a5d237.tar.gz
mutator-83e829148427d211a291028a492c62e848a5d237.zip
updated tdd tests for 12.9,12.1. and 12.13
Diffstat (limited to '')
-rw-r--r--test/main.c3
-rw-r--r--test/testFuncs1.c33
-rw-r--r--test/testFuncs1.h3
3 files changed, 38 insertions, 1 deletions
diff --git a/test/main.c b/test/main.c
index b233546..48a5b4c 100644
--- a/test/main.c
+++ b/test/main.c
@@ -67,5 +67,8 @@ main()
test19();
test20();
test21();
+ test22();
+ test23();
+ test24();
}
/*intentionally left blank.*/
diff --git a/test/testFuncs1.c b/test/testFuncs1.c
index 0d55730..04c598a 100644
--- a/test/testFuncs1.c
+++ b/test/testFuncs1.c
@@ -4,7 +4,7 @@
/*include*/
/**********************************************************************************************************************/
#include "testFuncs1.h"
-#include <string.h>
+//#include <string.h>
/**************************************************MACROS & DEFS*******************************************************/
/**********************************************************************************************************************/
@@ -923,5 +923,36 @@ void test21(void)
a << 45U;
}
+void test22(void)
+{
+ unsigned int a;
+ int b;
+ t_int c;
+ ut_int d;
+
+ b = -a;
+ b = -c;
+ b = -d;
+}
+
+void test23 (void)
+{
+ int a, b, c;
+
+ a = b, c = a;
+}
+
+void test24(void)
+{
+ int a;
+ int b;
+ int c;
+
+ c = ++a - b--;
+ c = a++;
+ b++;
+ --a;
+}
+
/**********************************************************************************************************************/
/*the last line's been intentionally left blank.*/
diff --git a/test/testFuncs1.h b/test/testFuncs1.h
index 0961101..d5fe757 100644
--- a/test/testFuncs1.h
+++ b/test/testFuncs1.h
@@ -117,6 +117,9 @@ void test17(void);
void test19(void);
void test20(void);
void test21(void);
+void test22(void);
+void test23(void);
+void test24(void);
/***********************************************************************************************************/
/*ive been intentionally left blank. dont touch me.*/