#!@SH@

@PERL@ builder -reference -database $srcdir/UnicodeData-@UNICODE_VERSION@.txt > unac.reference

if ./unactest | diff -bu - unac.reference
then
	:
else
	echo "unactest | diff - unac.reference must not show any difference" >&2
	exit 1
fi

if ./unaccent ISO-8859-1 �t� ete > /dev/null
then
	:
else
	./unaccent --debug_high ISO-8859-1 �t� ete
	exit 1
fi

#
# Rune Nordb�e Skillingstad <runesk@linpro.no> on
# UnicodeData-3.2.0.txt: 2 LATIN characters used in Norway didn't have
# a "Character Decomposition Mapping". I've submitted a patch to
# unicode.org that fixes this problem, but it might take some time
# before somebody there have time to do something about it.
#
if ./unaccent ISO-8859-1 ������ aeoaAEOA > /dev/null
then
	:
else
	./unaccent --debug_high ISO-8859-1 ������ aeoaAEOA
	exit 1
fi

