go:
	ctags-exuberant --language-force=python stddev
	./this-pylint --which-2 None --to-pylint stddev
	/usr/local/cpython-3.8/bin/mypy --disallow-untyped-calls --ignore-missing-imports stddev
	seq 10 | /usr/local/cpython-3.6/bin/python ./stddev | egrep -q '^arithmetic_mean 5\.50*$$'
	seq 10 | /usr/local/cpython-3.9/bin/python ./stddev | egrep -q '^arithmetic_mean 5\.50*$$'
	seq 10 | /usr/local/pypy3-7.3.0/bin/pypy3 ./stddev | egrep -q '^arithmetic_mean 5\.50*$$'
	#seq 10 | /usr/local/jython-2.7.0/bin/jython ./stddev | egrep -q '^arithmetic_mean 5\.50*$$'
	seq 10 | ./stddev | egrep -q '^minimum 1$$'
	echo '2 2 3 4 14' | tr ' ' '\012' | ./stddev | egrep -q '^median_absolute_deviation (1|1\.00*)$$'
	echo '1 1 2 2 4 6 9' | tr ' ' '\012' | ./stddev | egrep -q '^median_absolute_deviation (1|1\.00*)$$'
	echo '3 6 6 7 8 11 15 16' | tr ' ' '\012' | ./stddev | egrep -q '^mean_absolute_deviation 3\.750*$$'
	echo '3 13 7 5 21 23 23 40 23 14 12 56 23 29' | tr ' ' '\012' | ./stddev | egrep -q '^median 22\.00*$$'
	# Mode is a little tricky, so we have extra tests for it.
	printf '1\n2\n3\n' | ./stddev | egrep -q '^mode none$$'
	printf '1\n' | ./stddev | egrep -q '^mode none$$'
	printf '1\n1\n' | ./stddev | egrep -q '^mode none$$'
	printf '1\n1\n2\n2\n' | ./stddev | egrep -q '^mode none$$'
	printf '1\n1\n2\n2\n3\n' | ./stddev | egrep -q '^mode 1_&_2$$'
	echo '9 3 3 44 17 17 44 15 15 15 27 40 8' | tr ' ' '\012' | ./stddev | egrep -q '^mode 15$$'
	# be careful to allow for floating point error in this one
	printf '1.1\n2.2\n3.3\n' | ./stddev | egrep -q '^arithmetic_mean 2\.2$$|^arithmetic_mean 2.19.*$$|^arithmetic_mean 2.20.*$$'
	./stddev < /dev/null | egrep -q '^empty_list_of_numbers$$'
	seq 10000 | ./stddev | egrep -q '^sum 50005000$$'
	seq 10000 | ./stddev --commas | egrep -q '^sum 50,005,000$$'
	seq 10000 | ./stddev | egrep -q '^sum 50005000$$'
	echo 2 18 | tr ' ' '\012' | ./stddev | egrep -q '^geometric_mean 6.0*$$'
	printf '4\n1\n0.03125\n' | ./stddev | egrep -q '^geometric_mean 0.5$$|^geometric_mean 0.5000.*$$|^geometric_mean 0.4999.*$$'
	@echo
	# This file used to cause geometric_mean to return inf.
	./stddev < file-lengths

clean:
	rm -f tags
	rm -rf .ropeproject .mypy_cache

install:
	./install-file --file stddev --directory /usr/local/bin/.