# word-diff the testsuite
# $Id$

function usage() {
    echo "usage: cd mymodule/testsuite; ./tdiff tmp.out.Foo"
    exit 1
}

# construct OLD and NEW
NEW=$1
test -n "$NEW" || usage
OLD=${NEW#tmp.out.}
OLD=tests/$OLD.out

# the parameter for less makes it search for [- -] {+ or +}
# that are markers for deleted and added words
wdiff $OLD $NEW |less -p '(\[-|-\]|\{\+|\+\})' -
