var doTest = require ('./');

doTest.add ('Module interface', function () {
  var test = doTest.test ();

  test
    .isObject ('fail', 'exports', doTest)
    .isFunction ('fail', '.add', doTest.add)
    .isFunction ('fail', '.run', doTest.run)
    .isFunction ('fail', '.log', doTest.log)
    .isFunction ('fail', '.exit', doTest.exit)
    .isFunction ('fail', '.test', doTest.test)
    .isFunction ('fail', '.test.done', test.done)
    .isFunction ('fail', '.test.error', test.error)
    .isFunction ('fail', '.test.good', test.good)
    .isFunction ('fail', '.test.fail', test.fail)
    .isFunction ('fail', '.test.warn', test.warn)
    .isFunction ('fail', '.test.info', test.info)
    .done ();
});


doTest.add ('test() shortcut', function (test) {
  doTest.test ()
    .isFunction ('fail', 'test', test)
    .done ();
});


doTest.add ('Methods', function (test, fake) {
  doTest.test ()
    .isError ('fail', '.isError', new Error ())
    .isObject ('fail', '.isObject', {})
    .isArray ('fail', '.isArray', [])
    .isString ('fail', '.isString', '')
    .isNumber ('fail', '.isNumber', 1)
    .isUndefined ('fail', '.isUndefined', fake)
    .isNull ('fail', '.isNull', null)
    .isNaN ('fail', '.isNaN', NaN)
    .isBoolean ('fail', '.isBoolean', true)
    .isFunction ('fail', '.isFunction', function () {})
    .isDate ('fail', '.isDate', new Date ())
    .isExactly ('fail', '.isExactly', ':)', ':)')
    .isNot ('fail', '.isNot', 'a', 'b')
    .isRegexp ('fail', '.isRegexp', /^\w$/)
    .isRegexpMatch ('fail', '.isRegexMatch', 'a', /^\w$/)
    .isCondition ('fail', '.isCondition', 1, '<', 2)
    .isEmpty ('fail', '.isEmpty', '')
    .isNotEmpty ('fail', '.isNotEmpty', 'text')
    .info ({ hello: 'world' })
    .done ();
});


doTest.run ();

@@ -463,21 +463,20 @@
 est.
-error
+good
 ', test.
 erro
@@ -475,13 +475,12 @@
 est.
-error
+good
 )%0A  
@@ -505,36 +505,36 @@
 il', '.test.
-good
+warn
 ', test.
 good)%0A    .i
@@ -513,36 +513,36 @@
 est.warn', test.
-good
+warn
 )%0A    .isFunctio
@@ -605,36 +605,37 @@
 il', '.test.
-warn
+error
 ', test.
 warn)%0A    .i
@@ -614,36 +614,37 @@
 st.error', test.
-warn
+error
 )%0A    .isFunctio
@@ -1690,16 +1690,90 @@
 'text')%0A
+    .warn ('This is a warn message')%0A    .good ('This is a good message')%0A
     .inf

check warn and good, changed order