#!/bin/bash

nt=1                        

function nextTest {
	echo "((" $* ")" " && echo ${nt}) | ./twf.exe"
	let nt=${nt}+1
	return
}
                     
nextTest "./genWhite.exe 10 | ./negate.exe"
nextTest "./genStripes.exe ${nt} 15"
nextTest "./genLong.exe 25"
nextTest "./genConnected.exe 2113102737 15 100 | ./negate.exe"
nextTest "./genCircle 25"

nextTest "./genLines.exe 24 | ./negate.exe"
nextTest "./genSquares.exe 25 | ./negate.exe"
nextTest "./genChess_k 25 3"
nextTest "./twf.exe <../src/09.hand"
nextTest "./twf.exe <../src/10.hand"

nextTest "./genRand.exe ${nt} 70"
nextTest "./genRand.exe ${nt} 85"
nextTest "./genRand.exe ${nt} 100"  
nextTest "./genROI.exe | ./border.exe 7"
nextTest "./gen3BOLTA.exe | ./border.exe 4"
                             
nextTest "./genChess.exe 100 0  | ./noise.exe ${nt} corner"
nextTest "./genChess.exe 99 1  | ./noise.exe ${nt} 5 | ./negate.exe"
nextTest "./genChessBorder.exe ${nt} 97 20"
nextTest "./genChess2.exe 100"
nextTest "./genMagic 100 | ./negate.exe"