/* --- ENVIRONMENT SETUP --- */

var ExecPlan = require('exec-plan').ExecPlan;
var utils = require('../utils');
var isFunction = utils.isFunction;
var isDefined = utils.isDefined;
var isNumber = utils.isNumber;
var isString = utils.isString;
var isObject = utils.isObject;
var isArray = utils.isArray;

/* ------------------------- */

/* --- TEST CASES --- */

// verification of correct construction
exports['Passing in no constructor config object makes autoPrintOut and autoPrintErr true'] =
        function (test) {
    var execPlan = new ExecPlan();
    test.ok(execPlan.willAutoPrintOut());
    test.ok(execPlan.willAutoPrintErr());
    test.done();
};

exports['Constructor config {autoPrintOut:false} sets autoPrintOut and autoPrintErr accordingly'] =         function (test) {
    var execPlan = new ExecPlan({autoPrintOut: false});
    test.equal(execPlan.willAutoPrintOut(), false, 'execPlan will not auto print stdout');
    test.ok(execPlan.willAutoPrintErr(), 'execPlan will auto print stderr');
    test.done();
};

exports['Constructor config {autoPrintErr:false} sets autoPrintOut and autoPrintErr accordingly'] =         function (test) {
    var execPlan = new ExecPlan({autoPrintErr: false});
    test.ok(execPlan.willAutoPrintOut(), 'execPlan will auto print stderr');
    test.equal(execPlan.willAutoPrintErr(), false, 'execPlan will not auto print stderr');
    test.done();
};

exports['Constructor config {autoPrintOut:false, autoPrintErr:false} sets autoPrintOut and ' +
        'autoPrintErr accordingly'] = function (test) {
    var execPlan = new ExecPlan({autoPrintOut: false, autoPrintErr: false});
    test.equal(execPlan.willAutoPrintOut(), false, 'execPlan will not auto print stdout');
    test.equal(execPlan.willAutoPrintErr(), false, 'execPlan will not auto print stderr');
    test.done();
};

@@ -357,16 +357,23 @@
 - */%0A%0A//
+ GROUP:
  verific
@@ -409,17 +409,38 @@
 %0Aexports
-%5B
+.construction = %7B%0A    
 'Passing
@@ -450,20 +450,8 @@
  no 
-constructor 
 conf
@@ -474,38 +474,25 @@
 autoPrintOut
- and autoPrint
+/
 Err true'%5D =
@@ -492,12 +492,14 @@
 rue'
-%5D =%0A
+:%0A    
     
@@ -512,32 +512,36 @@
 nction (test) %7B%0A
+    
     var execPlan
@@ -559,24 +559,28 @@
 Plan();%0A    
+ 
+   
 test.ok(exec
@@ -605,24 +605,28 @@
 Out());%0A    
+  
+  
 test.ok(exec
@@ -651,24 +651,28 @@
 Err());%0A    
+   
+ 
 test.done();
@@ -676,34 +676,21 @@
 ();%0A
-%7D;%0A%0Aexports%5B'Constructor c
+    %7D,%0A    'C
 onfi
@@ -725,38 +725,25 @@
 autoPrintOut
- and autoPrint
+/
 Err accordin
@@ -738,35 +738,37 @@
 Err accordingly'
-%5D =
+:%0A   
          functio
@@ -770,32 +770,36 @@
 nction (test) %7B%0A
+    
     var execPlan
@@ -834,32 +834,36 @@
 t: false%7D);%0A    
+   
+ 
 test.equal(execP
@@ -925,32 +925,36 @@
 print stdout');%0A
+    
     test.ok(exec
@@ -1006,32 +1006,36 @@
 print stderr');%0A
+    
     test.done();
@@ -1039,34 +1039,21 @@
 ();%0A
-%7D;%0A%0Aexports%5B'Constructor c
+    %7D,%0A    'C
 onfi
@@ -1096,22 +1096,9 @@
 tOut
- and autoPrint
+/
 Err 
@@ -1109,19 +1109,19 @@
 rdingly'
-%5D =
+:%0A 
         
@@ -1113,32 +1113,34 @@
 gly':%0A          
+  
 function (test) 
@@ -1133,32 +1133,36 @@
 nction (test) %7B%0A
+    
     var execPlan
@@ -1193,32 +1193,36 @@
 ntErr: false%7D);%0A
+    
     test.ok(exec
@@ -1274,32 +1274,36 @@
 print stderr');%0A
+    
     test.equal(e
@@ -1369,32 +1369,36 @@
 print stderr');%0A
+    
     test.done();
@@ -1402,34 +1402,21 @@
 ();%0A
-%7D;%0A%0Aexports%5B'Constructor c
+    %7D,%0A    'C
 onfi
@@ -1479,54 +1479,36 @@
 tOut
- and ' +%0A        'autoPrintErr accordingly'%5D =
+/Err correctly':%0A           
  fun
@@ -1522,24 +1522,28 @@
 test) %7B%0A    
+   
+ 
 var execPlan
@@ -1599,24 +1599,28 @@
 r: false%7D);%0A
+    
     test.equ
@@ -1694,24 +1694,28 @@
 t stdout');%0A
+    
     test.equ
@@ -1793,24 +1793,28 @@
 derr');%0A    
+ 
+   
 test.done();
@@ -1814,11 +1814,17 @@
 done();%0A
+    %7D%0A
 %7D;%0A

Modify ExecPlan test cases to take advantage of nodeunit grouping mechanism.