Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.36 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/usr/bin/env ruby
  2. # -*- ruby -*-
  3.  
  4. require 'edgecase'
  5.  
  6. class AboutAsserts < EdgeCase::Koan
  7.  
  8.   # We shall contemplate truth by testing reality, via asserts.
  9.   def test_assert_truth
  10.     #--
  11.     assert true                 # This should be true
  12.     if false
  13.     #++
  14.     assert false                # This should be true
  15.     #--
  16.     end
  17.     #++
  18.   end