#!/bin/bash

i=0
while (( i <= 9 )) ;
do
  j=0
  while (( j <= 9 )) ;
  do
    if [ -e tests/$i$j ] ;
    then
      echo "test $i$j"
      cp tests/$i$j collider.in
      $1
      ./check collider.in collider.out tests/$i$j.a
    fi
    let j++
  done
  let i++
done
