emilwallner / Lem-in-Checker

A unit test to check error cases for ant simulations. A Shell script.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lem-in checker

  • Add the sleep function before your return or exit statement. Part of the unistd.h library.
    • sleep(3);
  • Clone the folder in your Lem_in folder
  • The output of each ant farm is saved in a new folder, Result.
    • cat ./Result/nameoffile
  • It compares all your output to my output and returns the difference in output_difference.txt
  • cat output_difference.txt
  • If it it empty, you have the same result as me.
  • If you want to test 10K rooms and 100K rooms, uncomment them in the run.sh file.
  • If you have more maps, results from other algorithms, or a better shell script. Ping me and I'll add you as a collaborator.
  • Many of the maps were made by @cmehay's lem-in map generator: https://github.com/cmehay/lem-in_generator

About

A unit test to check error cases for ant simulations. A Shell script.


Languages

Language:Shell 100.0%