test.js
/* Will check the response to an input and expect to see the substring you provide against it.
    "Hi how are you" will be match with "how are" as expected and pass
*/
Will check the response to an input and expect to see the substring you provide against it.
"Hi how are you" will be match with "how are" as expected and pass
Will check the response to an input and expect to see the substring you provide against it . " Hi how are you " will be match with " how are " as expected and pass
function expect(comment, expected) {
    comment = comment.toUpperCase()
    var a = sentenceAnalyser.parse(message).trim()
    var match = h.substringMatchCase(a, expected, false)
    console.log("(expect) " + comment + ": \n    \"" + a + "\"")
    if (match)h.succ("Pass")
    else {
        h.err("Expected: \"" + expected + "\"")
        passed = false
    } 
    console.log("")
}
function expect ( comment , expected ) { comment = comment . toUpperCase ( ) var a = sentenceAnalyser . parse ( message ) . trim ( ) var match = h . substringMatchCase ( a , expected , false ) console . log ( "(expect) " + comment + ": \n    \"" + a + "\"" ) if ( match ) h . succ ( "Pass" ) else { h . err ( "Expected: \"" + expected + "\"" ) passed = false } console . log ( "" ) }
Will check the response to an input and expect to see the substring you provide against it.
Will check the response to an input and expect to see the substring you provide against it .
//\n