#!/usr/bin/js

// a little helper for testing from command line
// just run it, it will output the test results

try {
    load('beautify.js');
    load('tests/sanitytest.js')
    load('tests/beautify-tests.js')
} catch (yada) {
    load('../beautify.js');
    //load('sanitytest.js')
    load('beautify-tests.js')
}

print(run_beautifier_tests().results_raw())


// for nodejs use this from the command line from the main directory:
// echo "console.log(run_beautifier_tests().results_raw());" | cat beautify.js tests/sanitytest.js tests/beautify-tests.js - | node
