Commit c7d1f4e

mo khan <mo@mokhan.ca>
2014-10-25 14:43:11
add rake test to run tests and make them pass.
1 parent b596217
Changed files (2)
minitest.c → gol.c
@@ -4,7 +4,7 @@
 int tests_run = 0;
 
 int foo = 7;
-int bar = 4;
+int bar = 5;
 
 static char * test_foo() {
   mu_assert("error, foo != 7", foo == 7);
Rakefile
@@ -0,0 +1,13 @@
+task :default => :test
+
+task :clean do
+  "rm *.out"
+end
+
+task :build => :clean do
+  sh "gcc gol.c"
+end
+
+task :test => :build do
+  sh "./a.out"
+end