cd "$(dirname "$0")"
for cmd in rhino ringo narwhal node; do
	echo "Testing in $cmd..."
	$cmd tests.js
done
echo "Testing in a browser..."
open index.html
cd "$(dirname "$0")"
echo "Testing in Rhino..."
rhino -opt -1 tests.js
echo "Testing in Ringo..."
ringo -o -1 tests.js
NARWHAL_OPTIMIZATION=-1
for cmd in narwhal node; do
	echo "Testing in $cmd..."
	$cmd tests.js
done
echo "Testing in a browser..."
open index.html
Disable optimizations when running unit tests in Rhino, Ringo, and Narwhal
Disable optimizations when running unit tests in Rhino, Ringo, and Narwhal

This prevents the following error message:

> InternalError: Encountered code generation error while compiling function
> “null”: generated bytecode for method exceeds 64K limit.
