Changeset 130 for trunk/run-tests.rb

Show
Ignore:
Timestamp:
01/17/2007 07:24:36 (22 months ago)
Author:
jgarber
Message:

Turned a big if statement into a case.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/run-tests.rb

    r129 r130  
    1818            tests += 1 
    1919            red = RedCloth.new( doc['in'], options ) 
    20             html = if testfile =~ /markdown/ 
     20            html = case testfile 
     21                   when /markdown/ 
    2122                       red.to_html( :markdown ) 
    22                    elsif testfile =~ /docbook/ 
     23                   when /docbook/ 
    2324                       red.to_docbook 
    24                    elsif testfile =~ /textile/ 
     25                   when /textile/ 
    2526                       red.to_html( :textile ) 
    2627                   else