#!/bin/sh
set -efu

pys="$(py3versions -s 2> /dev/null)"

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


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