diff options
| author | bloodstalker <thabogre@gmail.com> | 2016-12-26 12:53:17 +0000 | 
|---|---|---|
| committer | bloodstalker <thabogre@gmail.com> | 2016-12-26 12:53:17 +0000 | 
| commit | 16f476648439423c7c6c3f35f6f00e0145166179 (patch) | |
| tree | 164f03d529ce72b13e930695106ce6ed7c5a0f46 | |
| parent | added implementation noted for 16.7 (diff) | |
| download | mutator-16f476648439423c7c6c3f35f6f00e0145166179.tar.gz mutator-16f476648439423c7c6c3f35f6f00e0145166179.zip | |
added tdd tests for 16.7
| -rw-r--r-- | test/testFuncs2.c | 29 | ||||
| -rw-r--r-- | test/testFuncs2.h | 1 | 
2 files changed, 30 insertions, 0 deletions
| diff --git a/test/testFuncs2.c b/test/testFuncs2.c index efe9c8e..776dc33 100644 --- a/test/testFuncs2.c +++ b/test/testFuncs2.c @@ -380,5 +380,34 @@ void testfunc15 (void)    a[2] = 052;  } +void testfunc16(int* p1, int* p2, int* const p3, const int* p4, int* p5) +{ +  if (*p1 > 100) +  { +    /*do something*/ +  } + +  if (*p5 > 100) +  { +    /*do something*/ +  } + +  p5++; +  p5 = p5 + 10; + +  *p2++; +  *p2 = *p2 + 100; + +  if (*p3 > 1000) +  { +    /*do something else*/ +  } + +  if (*p4 < 100) +  { +    /*yet another task*/ +  } +} +  /*********************************************************************************************************************/  /*last line intentionally left blank.*/ diff --git a/test/testFuncs2.h b/test/testFuncs2.h index ede14eb..35a175f 100644 --- a/test/testFuncs2.h +++ b/test/testFuncs2.h @@ -47,6 +47,7 @@ void anotherheaderfunc (void)  void testFunc9(void);  void testFunc11(void);  void testFunc12(void); +void testFunc16(void);  /*********************************************************************************************************************/  #endif | 
