#!/bin/sh
set -efu

pys="$(pyversions -r 2> /dev/null)"

cd "$ADTTMP"
printf '# hi\n\n' > expected.txt


for py in $pys; do
	echo "=== $py ==="
	echo '<h1>hi</h1>' | $py -m html2text.__init__ > output-${py}.txt
	diff -u expected.txt output-${py}.txt
done
