#!/bin/bash # Copyright (C) 2020 Ben Asselstine # # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provided the copyright # notice and this notice are preserved. This file is offered as-is, # without any warranty. #here is what we expect expected=`mktemp $builddir/fituvalu.XXXXXX` bindir=$builddir/../src cat << EOF >$expected 265, 49, 121, 1, 145, 289, 169, 241, 25, 1060, 196, 484, 4, 580, 1156, 676, 964, 100, EOF #generating our results echo "265, 49, 121, 1, 145, 289, 169, 241, 25" | $bindir/expand-square 4 #0032.log is simultaneously created as this script runs. diff -uNrd $expected $builddir/0032.log retval=$? #cleanup rm $expected exit $retval