Some ideas were taken from PointerKoans.
###Prerequesites You will need CMake.
And of course a C++ compiler. I just tested it with a recent GCC.
##How to walk the path to enlightment
Get the sources
git clone git://github.com/torbjoernk/CppKoans.git
Create a build directory
cd CppKoans mkdir build cd build
Configure the build
Now follow the instructions printed from the very beginning.
The files, you will need to edit are in
Each time you saved a file and want to rerun the koans, you need to compile it
Thus, walking the path to enlightment is a repetition of these steps:
Edit and save a file in
Read the master's reply with
##Adding further Koans
###To existing episodes
Just define a new
private void function without parameters in the bottom
section of the episode's header file it should belong to.
Then go to the implementation file of that episode and implement your new koan.
Finally add your newly created koan to the
run() function in the header file
of that episode and increase the
num_tests counter by one (or whatevery amount
of koans you added).
There is a sample episode, which can be used as a template for new episodes.
After copying and renaming of
~/koans/koanXX_sample_koans.cpp the following steps are necessary:
add the implementation file to
add the header file to
enable and activate the new episode in
##Licence MIT License Copyright 2012 Torbjörn Klatt - opensource eht torbjoern minus klatt dot de