aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-01-29 16:22:41 +0000
committerbloodstalker <thabogre@gmail.com>2017-01-29 16:22:41 +0000
commit59b2c3c2230373b8175456cf5ececd590b47e051 (patch)
tree41d95155b608b0e05e7cd4e4fcc6102a2a61e3c7 /test
parentworking on the auto-refac command (diff)
downloadmutator-59b2c3c2230373b8175456cf5ececd590b47e051.tar.gz
mutator-59b2c3c2230373b8175456cf5ececd590b47e051.zip
removed extra tabs and whitespaces.
Diffstat (limited to 'test')
-rw-r--r--test/auto-refac-tdd/auto-refac-tdd01.c33
1 files changed, 18 insertions, 15 deletions
diff --git a/test/auto-refac-tdd/auto-refac-tdd01.c b/test/auto-refac-tdd/auto-refac-tdd01.c
index f4c156a..09ee951 100644
--- a/test/auto-refac-tdd/auto-refac-tdd01.c
+++ b/test/auto-refac-tdd/auto-refac-tdd01.c
@@ -22,7 +22,7 @@ void tdd_forfixer(void)
counter;
for (loopcounter = 0; loopcounter < 10; ++loopcounter)
- counter-- ;
+ counter--;
for (loopcounter = 0; loopcounter < 10; ++loopcounter)
{
@@ -33,14 +33,15 @@ void tdd_forfixer(void)
void tdd_whilefixer(void)
{
int whilecounter;
+ int counter;
- while (true)
- whilecounter;
+ while (1)
+ whilecounter--;
- while (true)
- whilecounter++ ;
+ while (1)
+ whilecounter++;
- while (true)
+ while (1)
{
counter++;
}
@@ -63,7 +64,7 @@ void tdd_ifelsefixer(void)
/*something*/
}
else
- a0++ ;
+ a0++;
if (0 == a0)
{
@@ -97,9 +98,9 @@ void tdd_iffixer(void)
a1++;
if (b1 < 10)
- a1++ ;
+ a1++;
else if (a1 == 0)
- b1-- ;
+ b1--;
else
{
@@ -109,10 +110,10 @@ void tdd_iffixer(void)
a1++;
if (b1 < 10)
- a1++ ;
+ a1++;
else if (a1 == 0)
{
- b1-- ;
+ b1--;
if (a1 < 10)
a1--;
else if (b1 > 10)
@@ -128,6 +129,8 @@ void tdd_iffixer(void)
void tdd_switchfixer_switchdffixer(void)
{
int level = 10U;
+ int a;
+ int b;
switch (level) {
case 10U: {
@@ -205,19 +208,19 @@ void tdd_switchfixer_switchdffixer(void)
void tdd_ifconstswapper(void)
{
- int a;
+ int a10;
- if (a = 10)
+ if (a10 = 10)
{
/*blah blah*/
}
- if (a == MACRO1)
+ if (a10 == MACRO1)
{
}
- if (MACRO1 == a)
+ if (MACRO1 == a10)
{
}