TITLE: Simple Tests AUTHOR: Eugene Wallingford DATE: April 23, 2014 3:29 PM DESC: ----- BODY: As Corey Haines tells us, it really can be this simple:
Don't let the overhead of learning or using a test harness prevent you from starting. Write a test, then write some code. Or, if you prefer: Write some code, then write a test. -----def assert_equal(expected, actual, message) if expected != actual raise "Expected #{expected}, got #{actual}\n#{message}" end end