                 print "Warning, unused regex '#{regex}'\n"
     return tests
 
+#-------------------------------------------------------------------------------
 # Run one test.
 # name: name of the test. The test must fail iff the name starts with "fail_".
 # src:  source string of the test.
 # ast:  AST that must be produced as a result (optional).
 # logger: what to do if a test fails.
+#-------------------------------------------------------------------------------
 runTest = (name, src, ast, logger) ->
     logger ?= print
     print "\n***** Test #{name} *****\n"

    doit() if cond1 if cond2
"""

src.string1 = """
    x = "string"
"""

        print "\n#{name} input:\n#{src}\n\nCompilation of #{name} failed, as expected\n"
        return true
    else if astFailed and not shouldFail
        logger "Failure, invalid tree for src.#{name}\nexp: #{ast}\ngot: #{t}\nsrc: #{src}"
        return false
    else if hasFailed and not shouldFail
        logger "Failure, cannot parse src.#{name}"
