stolk / GPGOAP

General Purpose Goal Oriented Action Planning
564 stars 65 forks source link

Unit Testing #5

Closed metiscus closed 9 years ago

metiscus commented 9 years ago

This change set will add a CMake build system and a very limited set of unit tests.

Built / Tested: Debian gcc 4.9.2 CMake 3.1.0

stolk commented 9 years ago

Thank you for your sending me contributions.

I've adopted the MAXATOMS fix, the unsigned fix, the c++ guards.

I will decline the unit testing / cmake: The unit testing is 1200 lines of code or so, where as the actual goap/astar code is only 400. Small is beautiful, and I don't think it needs this unit testing framework slapped on.

In a similar vain: three c files do not need a build system, especially if it is not as universal as make.

The unused parm is pretty harmless and at this time want to avoid breaking API.