<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,9 @@
+*0.3.0* (Feb 28th, 2008)
+
+* added more documentation
+* changed to_console to to_s (what was I thinking)
+* add more tests
+
 *0.2.1* (Feb 24th, 2008)
 
 * small changes to rakefile and readme</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -1,10 +1,10 @@
-= rQRCode, Encode QRCodes
+== rQRCode, Encode QRCodes
 
 rQRCode is a library for encoding QR Codes in Ruby. It has a simple interface with all the standard qrcode options. It was adapted from the Javascript library by Kazuhiko Arase.
 
 RubyForge Project Page  http://rubyforge.org/projects/rqrcode/
 
-= An Overview
+== An Overview
 
 Let's clear up some rQRCode stuff.
 
@@ -13,7 +13,7 @@ Let's clear up some rQRCode stuff.
  # The interface is simple and assumes you just want to encode a string into a QR code
  # QR code is trademarked by Denso Wave inc
 
-= Rescources
+== Rescources
 
 wikipedia:: http://en.wikipedia.org/wiki/QR_Code
 Denso-Wave website:: http://www.denso-wave.com/qrcode/index-e.html
@@ -36,7 +36,7 @@ You have installed the gem already, yeah?
 === Simple QRCode generation to screen
 
  qr = RQRCode::QRCode.new( 'my string to generate', :size =&gt; 4, :level =&gt; :h )
- puts qr.to_console
+ puts qr.to_s
  #
  # Prints:
  # xxxxxxx x  x x   x x  xx  xxxxxxx
@@ -52,10 +52,10 @@ You have installed the gem already, yeah?
 &lt;b&gt;View: (minimal styling added)&lt;/b&gt;
  &lt;style type=&quot;text/css&quot;&gt;
  table {
-	 border-width: 0;
-	 border-style: none;
-	 border-color: #0000ff;
-	 border-collapse: collapse;
+   border-width: 0;
+   border-style: none;
+   border-color: #0000ff;
+   border-collapse: collapse;
  }
  td {
    border-width: 0; 
@@ -74,11 +74,11 @@ You have installed the gem already, yeah?
  &lt;table&gt;
  &lt;% @qr.modules.each_index do |x| %&gt;
    &lt;tr&gt;  
-   &lt;% x.each_index do |y| %&gt;
+   &lt;% @qr.modules.each_index do |y| %&gt;
     &lt;% if @qr.is_dark(x,y) %&gt;
- 		&lt;td class=&quot;black&quot;/&gt;
+     &lt;td class=&quot;black&quot;/&gt;
     &lt;% else %&gt;
- 		&lt;td class=&quot;white&quot;/&gt;
+     &lt;td class=&quot;white&quot;/&gt;
     &lt;% end %&gt;
    &lt;% end %&gt;
    &lt;/tr&gt;</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -6,30 +6,30 @@ require 'rake/rdoctask'
 require 'rake/testtask'
 
 NAME = &quot;rqrcode&quot;
-VERS = &quot;0.2.1&quot;
+VERS = &quot;0.3.0&quot;
 CLEAN.include ['pkg', 'rdoc']
 
 Gem::manage_gems
 
 spec = Gem::Specification.new do |s|
-  s.name						= NAME
-  s.version					= VERS
-  s.author					= &quot;Duncan Robertson&quot;
-  s.email						= &quot;duncan@whomwah.com&quot;
-  s.homepage				= &quot;http://rqrcode.rubyforge.org&quot;
-  s.platform				= Gem::Platform::RUBY
-  s.summary					= &quot;A library to encode QR Codes&quot; 
-	s.rubyforge_project = NAME 
-	s.description = &lt;&lt;EOF
-rQRCode is a library for encoding QRCodes. The simple
-interace allows you to simply create QRCodes ready to
-be displayed in the way you choose. 
+  s.name            = NAME
+  s.version          = VERS
+  s.author          = &quot;Duncan Robertson&quot;
+  s.email            = &quot;duncan@whomwah.com&quot;
+  s.homepage        = &quot;http://rqrcode.rubyforge.org&quot;
+  s.platform        = Gem::Platform::RUBY
+  s.summary          = &quot;A library to encode QR Codes&quot; 
+  s.rubyforge_project = NAME 
+  s.description = &lt;&lt;EOF
+rQRCode is a library for encoding QR Codes. The simple
+interface allows you to simply create QR Code data
+structures ready to be displayed in the way you choose. 
 EOF
   s.files = FileList[&quot;lib/**/*&quot;, &quot;test/*&quot;].exclude(&quot;rdoc&quot;).to_a
-  s.require_path		= &quot;lib&quot;
-	s.has_rdoc				= true
+  s.require_path    = &quot;lib&quot;
+  s.has_rdoc        = true
   s.extra_rdoc_files = [&quot;README&quot;, &quot;CHANGELOG&quot;, &quot;COPYING&quot;]  
-	s.test_file       = &quot;test/runtest.rb&quot;
+  s.test_file       = &quot;test/runtest.rb&quot;
 end
 
 task :build_package =&gt; [:repackage]
@@ -61,5 +61,5 @@ Rake::RDocTask.new(&quot;rdoc&quot;) { |rdoc|
 
 desc &quot;rdoc to rubyforge&quot;
 task :rubyforge =&gt; [:rdoc] do
-	sh %{/usr/bin/scp -r -p rdoc/* rubyforge:/var/www/gforge-projects/rqrcode}
+  sh %{/usr/bin/scp -r -p rdoc/* rubyforge:/var/www/gforge-projects/rqrcode}
 end</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,9 @@
 module CoreExtensions #:nodoc:
   module Array #:nodoc:
     module Behavior
-			def extract_options!
-				last.is_a?(::Hash) ? pop : {}
-			end
-		end
-	end
+      def extract_options!
+        last.is_a?(::Hash) ? pop : {}
+      end
+    end
+  end
 end</diff>
      <filename>lib/rqrcode/core_ext/array/behavior.rb</filename>
    </modified>
    <modified>
      <diff>@@ -12,10 +12,10 @@
 module RQRCode #:nodoc:
 
   QRMODE = {
-    :mode_number		=&gt; 1 &lt;&lt; 0,
-    :mode_alpha_num	=&gt; 1 &lt;&lt; 1,
-    :mode_8bit_byte	=&gt; 1 &lt;&lt; 2,
-    :mode_kanji			=&gt; 1 &lt;&lt; 3
+    :mode_number        =&gt; 1 &lt;&lt; 0,
+    :mode_alpha_numk    =&gt; 1 &lt;&lt; 1,
+    :mode_8bit_byte     =&gt; 1 &lt;&lt; 2,
+    :mode_kanji         =&gt; 1 &lt;&lt; 3
   }
 
   QRERRORCORRECTLEVEL = {
@@ -36,45 +36,57 @@ module RQRCode #:nodoc:
     :pattern111 =&gt; 7
   }
 
-	# Generic QRCode exception class.
+  # StandardErrors
 
-	class QRCodeArgumentError &lt; ArgumentError; end
-	class QRCodeRunTimeError &lt; RuntimeError; end
+  class QRCodeArgumentError &lt; ArgumentError; end
+  class QRCodeRunTimeError &lt; RuntimeError; end
 
-	# This is the main interface for creating your QRCode
-	# You create a new instance of QRCode and then you have
-	# a few simple methods to choose form
+  # == Creation
+  #
+  # QRCode objects expect only one required constructor parameter
+  # and an optional hash of any other. Here's a few examples: 
+  #
+  #  qr = RQRCode::QRCode.new('hello world')
+  #  qr = RQRCode::QRCode.new('hello world', :size =&gt; 1, :level =&gt; :m ) 
+  #
 
   class QRCode
     attr_reader :modules, :module_count
 
     PAD0 = 0xEC
-    PAD1 = 0x11	
-
-		# Expects a string to be parsed in, other options have defaults
-
-    def initialize( *args )
-			raise QRCodeArgumentError unless args.first.kind_of?( String )
-
-			@data									= args.shift
-			options								= args.extract_options!
-      level									= options[:level] || :h 
+    PAD1 = 0x11  
+
+    # Expects a string to be parsed in, other args are optional 
+    #
+    #   # string - the string you wish to encode 
+    #   # size   - the size of the qrcode
+    #   # level  - the error correction level 
+    #   qr = RQRCode::QRCode.new('hello world', :size =&gt; 1, :level =&gt; :m ) 
+    #
+
+ 		def initialize( *args )
+      raise QRCodeArgumentError unless args.first.kind_of?( String )
+
+      @data                 = args.shift
+      options               = args.extract_options!
+      level                 = options[:level] || :h 
       @error_correct_level  = QRERRORCORRECTLEVEL[ level.to_sym ] 
-      @type_number	        = options[:size] || 4
-			@module_count					= @type_number * 4 + 17
-      @modules							= nil
-      @data_cache						= nil
-			@data_list						= QR8bitByte.new( @data )
+      @type_number          = options[:size] || 4
+      @module_count         = @type_number * 4 + 17
+      @modules              = nil
+      @data_cache           = nil
+      @data_list            = QR8bitByte.new( @data )
 
-			self.make # let's go !
+      self.make
     end
 
-		# called parsing in a row and col coordinate
-		# * return true or false
-		# * raise exception if row &lt; 0 
-		# * raise exception if col &lt; 0 
-		# * raise exception if @module_count &lt;= row 
-		# * raise exception if @module_count &lt;= col 
+    # &lt;tt&gt;is_dark&lt;/tt&gt; is called with a +col+ and +row+ parameter. This will
+    # return true or false based on whether that coordinate exists in the 
+    # matrix returned. It would normally be called while iterating through
+    # &lt;tt&gt;modules&lt;/tt&gt;. A simple example would be:
+    #   
+    #  instance.is_dark( 10, 10 ) =&gt; true
+    #
 
     def is_dark( row, col )
       if row &lt; 0 || @module_count &lt;= row || col &lt; 0 || @module_count &lt;= col
@@ -83,8 +95,31 @@ module RQRCode #:nodoc:
       @modules[row][col]
     end
 
-    def to_console( row = 'x', col = ' ' )
-			res = []
+    # This is a public method that returns the QR Code you have
+    # generated as a string. It will not be able to be read
+    # in this format by a QR Code reader, but will give you an
+    # idea if the final outout. It takes two optional args
+    # +:true+ and +:false+ which are there for you to choose
+    # how the output looks. Here's an example of it's use:
+    #
+    #  instance.to_s =&gt;
+    #  xxxxxxx x  x x   x x  xx  xxxxxxx
+    #  x     x  xxx  xxxxxx xxx  x     x
+    #  x xxx x  xxxxx x       xx x xxx x
+    #
+    #  instance._to_s( :true =&gt; 'E', :false =&gt; 'Q') =&gt;
+    #  EEEEEEEQEQQEQEQQQEQEQQEEQQEEEEEEE
+    #  EQQQQQEQQEEEQQEEEEEEQEEEQQEQQQQQE
+    #  EQEEEQEQQEEEEEQEQQQQQQQEEQEQEEEQE
+    #
+
+    def to_s( *args )
+      options                = args.extract_options!
+      row                    = options[:true] || 'x' 
+      col                    = options[:false] || ' ' 
+
+      res = []
+
       @modules.each_index do |c|
         tmp = []
         @modules.each_index do |r|
@@ -95,17 +130,17 @@ module RQRCode #:nodoc:
           end
         end 
         res &lt;&lt; tmp.join
-      end
-			res.join(&quot;\n&quot;)
+     end
+      res.join(&quot;\n&quot;)
     end
 
-		protected
+    protected
 
-		def make #:nodoc:
+    def make #:nodoc:
       make_impl( false, get_best_mask_pattern )
-		end
+    end
 
-		private
+    private
 
 
     def make_impl( test, mask_pattern ) #:nodoc:
@@ -196,7 +231,7 @@ module RQRCode #:nodoc:
                 @modules[row + r][col + c] = false
               end
             end
-          end	
+          end  
         end
       end
     end
@@ -249,7 +284,7 @@ module RQRCode #:nodoc:
       end
 
       # fixed module
-      @modules[ @module_count - 8 ][8] = !test	
+      @modules[ @module_count - 8 ][8] = !test  
     end
 
 
@@ -290,7 +325,7 @@ module RQRCode #:nodoc:
             break
           end
         end
-      end	
+      end  
     end
 
     def QRCode.create_data( type_number, error_correct_level, data_list ) #:nodoc:
@@ -302,16 +337,16 @@ module RQRCode #:nodoc:
       buffer.put( 
         data.get_length, QRUtil.get_length_in_bits( data.mode, type_number ) 
       )
-      data.write( buffer )	
+      data.write( buffer )  
 
       total_data_count = 0
       ( 0...rs_blocks.size ).each do |i|
-        total_data_count = total_data_count + rs_blocks[i].data_count	
+        total_data_count = total_data_count + rs_blocks[i].data_count  
       end
 
       if buffer.get_length_in_bits &gt; total_data_count * 8
         raise QRCodeRunTimeError, 
-					&quot;code length overflow. (#{buffer.get_length_in_bits}&gt;#{total_data_count})&quot;
+          &quot;code length overflow. (#{buffer.get_length_in_bits}&gt;#{total_data_count})&quot;
       end
 
       if buffer.get_length_in_bits + 4 &lt;= total_data_count * 8
@@ -374,8 +409,8 @@ module RQRCode #:nodoc:
         ( 0...rs_blocks.size ).each do |r|
           if i &lt; dcdata[r].size
             index += 1
-            data[index-1] = dcdata[r][i]			
-          end	
+            data[index-1] = dcdata[r][i]      
+          end  
         end
       end
 
@@ -383,8 +418,8 @@ module RQRCode #:nodoc:
         ( 0...rs_blocks.size ).each do |r|
           if i &lt; ecdata[r].size
             index += 1
-            data[index-1] = ecdata[r][i]			
-          end	
+            data[index-1] = ecdata[r][i]      
+          end  
         end
       end
 </diff>
      <filename>lib/rqrcode/qrcode/qr_code.rb</filename>
    </modified>
    <modified>
      <diff>@@ -63,7 +63,7 @@ module RQRCode #:nodoc:
 
       ( 0...get_length ).each do |i|
         num[i] = get(i)
-      end	
+      end  
 
       ( 0...e.get_length ).each do |i|
         tmp = num[i].nil? ? 0 : num[i]</diff>
      <filename>lib/rqrcode/qrcode/qr_polynomial.rb</filename>
    </modified>
    <modified>
      <diff>@@ -44,7 +44,7 @@ module RQRCode #:nodoc:
       [2, 35, 17],
       [2, 35, 13],
 
-      # 4		
+      # 4    
       [1, 100, 80],
       [2, 50, 32],
       [2, 50, 24],
@@ -62,7 +62,7 @@ module RQRCode #:nodoc:
       [4, 43, 19],
       [4, 43, 15],
 
-      # 7		
+      # 7    
       [2, 98, 78],
       [4, 49, 31],
       [2, 32, 14, 4, 33, 15],
@@ -80,7 +80,7 @@ module RQRCode #:nodoc:
       [4, 36, 16, 4, 37, 17],
       [4, 36, 12, 4, 37, 13],
 
-      # 10		
+      # 10    
       [2, 86, 68, 2, 87, 69],
       [4, 69, 43, 1, 70, 44],
       [6, 43, 19, 2, 44, 20],
@@ -94,7 +94,7 @@ module RQRCode #:nodoc:
 
       if rs_block.nil?
         raise QRCodeRunTimeError,
-					&quot;bad rsblock @ typeno: #{type_no}/error_correct_level:#{error_correct_level}&quot;
+          &quot;bad rsblock @ typeno: #{type_no}/error_correct_level:#{error_correct_level}&quot;
       end
 
       length = rs_block.size / 3</diff>
      <filename>lib/rqrcode/qrcode/qr_rs_block.rb</filename>
    </modified>
    <modified>
      <diff>@@ -25,7 +25,7 @@ module RQRCode #:nodoc:
       [6, 24, 42],
       [6, 26, 46],
       [6, 28, 50],
-      [6, 30, 54],		
+      [6, 30, 54],    
       [6, 32, 58],
       [6, 34, 62],
       [6, 26, 46, 66],
@@ -57,7 +57,7 @@ module RQRCode #:nodoc:
       [6, 30, 58, 86, 114, 142, 170]
     ]
 
-    G15 = 1 &lt;&lt; 10 | 1 &lt;&lt; 8 | 1 &lt;&lt; 5 | 1 &lt;&lt; 4 | 1 &lt;&lt; 2 | 1 &lt;&lt; 1 | 1 &lt;&lt; 0	
+    G15 = 1 &lt;&lt; 10 | 1 &lt;&lt; 8 | 1 &lt;&lt; 5 | 1 &lt;&lt; 4 | 1 &lt;&lt; 2 | 1 &lt;&lt; 1 | 1 &lt;&lt; 0  
     G18 = 1 &lt;&lt; 12 | 1 &lt;&lt; 11 | 1 &lt;&lt; 10 | 1 &lt;&lt; 9 | 1 &lt;&lt; 8 | 1 &lt;&lt; 5 | 1 &lt;&lt; 2 | 1 &lt;&lt; 0
     G15_MASK = 1 &lt;&lt; 14 | 1 &lt;&lt; 12 | 1 &lt;&lt; 10 | 1 &lt;&lt; 4 | 1 &lt;&lt; 1
 
@@ -116,7 +116,7 @@ module RQRCode #:nodoc:
       when QRMASKPATTERN[:pattern111]
         ( (i * j) % 3 + (i + j) % 2) % 2 == 0
       else
-        raise QRCodeRunTimeError, &quot;bad mask_pattern: #{mask_pattern}&quot;	
+        raise QRCodeRunTimeError, &quot;bad mask_pattern: #{mask_pattern}&quot;  
       end
     end
 
@@ -137,7 +137,7 @@ module RQRCode #:nodoc:
 
         # 1 - 9
         case mode
-        when QRMODE[:mode_number] :	10
+        when QRMODE[:mode_number] :  10
         when QRMODE[:mode_alpha_num] : 9
         when QRMODE[:mode_8bit_byte] : 8
         when QRMODE[:mode_kanji] : 8
@@ -149,7 +149,7 @@ module RQRCode #:nodoc:
 
         # 10 -26
         case mode
-        when QRMODE[:mode_number] :	12
+        when QRMODE[:mode_number] :  12
         when QRMODE[:mode_alpha_num] : 11
         when QRMODE[:mode_8bit_byte] : 16
         when QRMODE[:mode_kanji] : 10
@@ -161,7 +161,7 @@ module RQRCode #:nodoc:
 
         # 27 - 40
         case mode
-        when QRMODE[:mode_number] :	14
+        when QRMODE[:mode_number] :  14
         when QRMODE[:mode_alpha_num] : 13
         when QRMODE[:mode_8bit_byte] : 16
         when QRMODE[:mode_kanji] : 12
@@ -199,7 +199,7 @@ module RQRCode #:nodoc:
 
           if same_count &gt; 5
             lost_point += (3 + same_count - 5)
-          end	
+          end  
         end
       end
 
@@ -211,8 +211,8 @@ module RQRCode #:nodoc:
           count = count + 1 if qr_code.is_dark( row + 1, col )
           count = count + 1 if qr_code.is_dark( row, col + 1 )
           count = count + 1 if qr_code.is_dark( row + 1, col + 1 )
-          lost_point = lost_point + 3 if (count == 0 || count == 4)	
-        end	
+          lost_point = lost_point + 3 if (count == 0 || count == 4)  
+        end  
       end
 
       # level 3
@@ -239,15 +239,15 @@ module RQRCode #:nodoc:
         ( 0...module_count ).each do |row|
           if qr_code.is_dark(row, col)
             dark_count = dark_count + 1
-          end	
+          end  
         end
       end
 
       ratio = (100 * dark_count / module_count / module_count - 50).abs / 5
       lost_point = lost_point * 10
 
-      lost_point			
-    end	
+      lost_point      
+    end  
 
   end
 </diff>
      <filename>lib/rqrcode/qrcode/qr_util.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,75 +2,77 @@ require &quot;test/unit&quot;
 require &quot;lib/rqrcode&quot;
 
 class QRCodeTest &lt; Test::Unit::TestCase
-	require &quot;test/test_data&quot;
+  require &quot;test/test_data&quot;
  
-	def test_no_data_given
-		assert_raise(RQRCode::QRCodeArgumentError) {
-			RQRCode::QRCode.new( :size =&gt; 1, :level =&gt; :h )
-			RQRCode::QRCode.new( :size =&gt; 1 )
-			RQRCode::QRCode.new
-		}
-		assert_raise(RQRCode::QRCodeRunTimeError) {
-			qr = RQRCode::QRCode.new('duncan')
-			qr.is_dark(0,999999)
-		}
-	end
+  def test_no_data_given
+    assert_raise(RQRCode::QRCodeArgumentError) {
+      RQRCode::QRCode.new( :size =&gt; 1, :level =&gt; :h )
+      RQRCode::QRCode.new( :size =&gt; 1 )
+      RQRCode::QRCode.new
+    }
+    assert_raise(RQRCode::QRCodeRunTimeError) {
+      qr = RQRCode::QRCode.new('duncan')
+      qr.is_dark(0,999999)
+    }
+  end
 
   def test_H_
-		qr = RQRCode::QRCode.new( 'duncan', :size =&gt; 1 )
+    qr = RQRCode::QRCode.new( 'duncan', :size =&gt; 1 )
 
     assert_equal qr.modules.size, 21
-		assert_equal qr.modules, MATRIX_1_H
+    assert_equal qr.modules, MATRIX_1_H
 
-		qr = RQRCode::QRCode.new( 'duncan', :size =&gt; 1 )
-		assert_equal qr.modules, MATRIX_1_H
-		qr = RQRCode::QRCode.new( 'duncan', :size =&gt; 1, :level =&gt; :l )
-		assert_equal qr.modules, MATRIX_1_L
-		qr = RQRCode::QRCode.new( 'duncan', :size =&gt; 1, :level =&gt; :m )
-		assert_equal qr.modules, MATRIX_1_M
-		qr = RQRCode::QRCode.new( 'duncan', :size =&gt; 1, :level =&gt; :q )
-		assert_equal qr.modules, MATRIX_1_Q
+    qr = RQRCode::QRCode.new( 'duncan', :size =&gt; 1 )
+    assert_equal qr.modules, MATRIX_1_H
+    qr = RQRCode::QRCode.new( 'duncan', :size =&gt; 1, :level =&gt; :l )
+    assert_equal qr.modules, MATRIX_1_L
+    qr = RQRCode::QRCode.new( 'duncan', :size =&gt; 1, :level =&gt; :m )
+    assert_equal qr.modules, MATRIX_1_M
+    qr = RQRCode::QRCode.new( 'duncan', :size =&gt; 1, :level =&gt; :q )
+    assert_equal qr.modules, MATRIX_1_Q
   end
 
   def test_3_H_
-		qr = RQRCode::QRCode.new( 'duncan', :size =&gt; 3 )
+    qr = RQRCode::QRCode.new( 'duncan', :size =&gt; 3 )
 
     assert_equal qr.modules.size, 29
-		assert_equal qr.modules, MATRIX_3_H
+    assert_equal qr.modules, MATRIX_3_H
   end
 
   def test_5_H_
-		qr = RQRCode::QRCode.new( 'duncan', :size =&gt; 5 )
+    qr = RQRCode::QRCode.new( 'duncan', :size =&gt; 5 )
 
     assert_equal qr.modules.size, 37
-		assert_equal qr.modules, MATRIX_5_H
+    assert_equal qr.modules, MATRIX_5_H
   end
 
   def test_10_H_
-		qr = RQRCode::QRCode.new( 'duncan', :size =&gt; 10 )
+    qr = RQRCode::QRCode.new( 'duncan', :size =&gt; 10 )
 
     assert_equal qr.modules.size, 57
-		assert_equal qr.modules, MATRIX_10_H
+    assert_equal qr.modules, MATRIX_10_H
   end
 
   def test_4_H_
-		qr = RQRCode::QRCode.new('www.bbc.co.uk/programmes/b0090blw',
-			:level =&gt; :l )
-		assert_equal qr.modules, MATRIX_4_L
-		qr = RQRCode::QRCode.new('www.bbc.co.uk/programmes/b0090blw',
-			:level =&gt; :m )
-		assert_equal qr.modules, MATRIX_4_M
-		qr = RQRCode::QRCode.new('www.bbc.co.uk/programmes/b0090blw',
-			:level =&gt; :q )
-		assert_equal qr.modules, MATRIX_4_Q
+    qr = RQRCode::QRCode.new('www.bbc.co.uk/programmes/b0090blw',
+      :level =&gt; :l )
+    assert_equal qr.modules, MATRIX_4_L
+    qr = RQRCode::QRCode.new('www.bbc.co.uk/programmes/b0090blw',
+      :level =&gt; :m )
+    assert_equal qr.modules, MATRIX_4_M
+    qr = RQRCode::QRCode.new('www.bbc.co.uk/programmes/b0090blw',
+      :level =&gt; :q )
+    assert_equal qr.modules, MATRIX_4_Q
 
-		qr = RQRCode::QRCode.new('www.bbc.co.uk/programmes/b0090blw')
+    qr = RQRCode::QRCode.new('www.bbc.co.uk/programmes/b0090blw')
     assert_equal qr.modules.size, 33
-		assert_equal qr.modules, MATRIX_4_H
+    assert_equal qr.modules, MATRIX_4_H
   end
 
-	def test_to_console
-		qr = RQRCode::QRCode.new( 'duncan', :size =&gt; 1 )
-		assert_equal qr.to_console[0..21], &quot;xxxxxxx xx x  xxxxxxx\n&quot;
-	end
+  def test_to_s
+    qr = RQRCode::QRCode.new( 'duncan', :size =&gt; 1 )
+    assert_equal qr.to_s[0..21], &quot;xxxxxxx xx x  xxxxxxx\n&quot;
+    assert_equal qr.to_s( :true =&gt; 'q', :false =&gt; 'n' )[0..21], &quot;qqqqqqqnqqnqnnqqqqqqq\n&quot;
+    assert_equal qr.to_s( :true =&gt; '@' )[0..21], &quot;@@@@@@@ @@ @  @@@@@@@\n&quot;
+  end
 end</diff>
      <filename>test/runtest.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e56cad86ba897e14a28733dac4deff2914cd6d4f</id>
    </parent>
  </parents>
  <author>
    <name>whomwah</name>
    <email>whomwah@70f6ffcc-3070-48c7-8e95-2772f12856e8</email>
  </author>
  <url>http://github.com/whomwah/rqrcode/commit/9b64d5304f04ac1c5b6160266e10a9eebf029e02</url>
  <id>9b64d5304f04ac1c5b6160266e10a9eebf029e02</id>
  <committed-date>2008-02-28T13:05:23-08:00</committed-date>
  <authored-date>2008-02-28T13:05:23-08:00</authored-date>
  <message>add more documentation
change to_console to to_s
remove all tabs and replace with spaces
more tests too



git-svn-id: svn+ssh://rubyforge/var/svn/rqrcode/trunk@36 70f6ffcc-3070-48c7-8e95-2772f12856e8</message>
  <tree>7233db6b8b012f5f7ae5e82b0ad3e9d51dbe2803</tree>
  <committer>
    <name>whomwah</name>
    <email>whomwah@70f6ffcc-3070-48c7-8e95-2772f12856e8</email>
  </committer>
</commit>
