test.js
/* 
Will directly target a function you supply and compare it to the free text. Good for testing tergeting.
Will trim and make lower case for compare.
Can't be used for things with random elements or fuzzylogic.
*/
Will directly target a function you supply and compare it to the free text. Good for testing tergeting.
Will trim and make lower case for compare.
Can't be used for things with random elements or fuzzylogic.
Will directly target a function you supply and compare it to the free text . Good for testing tergeting . Will trim and make lower case for compare . Can ' t be used for things with random elements or fuzzylogic .
function direct(comment, target) {
    comment = comment.toUpperCase()
    var a = target(message.text).trim()
    var b = sentenceAnalyser.parse(message).trim()
    var match = (h.substringMatchCase(a, b, false))
    console.log("(direct) " + comment + ": \n    \"" + a + "\"")
    if (!match){
        h.warn("\n    \"" + b + "\" \n    Sentence analyser does not match direct call!")
        passed = false
    } 
    else h.succ("Pass")
    console.log("")
}
function direct ( comment , target ) { comment = comment . toUpperCase ( ) var a = target ( message . text ) . trim ( ) var b = sentenceAnalyser . parse ( message ) . trim ( ) var match = ( h . substringMatchCase ( a , b , false ) ) console . log ( "(direct) " + comment + ": \n    \"" + a + "\"" ) if ( ! match ) { h . warn ( "\n    \"" + b + "\" \n    Sentence analyser does not match direct call!" ) passed = false } else h . succ ( "Pass" ) console . log ( "" ) }
Will directly target a function you supply and compare it to the free text.
Will directly target a function you supply and compare it to the free text .
//\n