<html>
<head>
<style><!--
  body {background-color:#ffffff;}
  .file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;}
  .pathname {font-family:monospace; float:right;}
  .fileheader {margin-bottom:.5em;}
  .diff {margin:0;}
  .tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;}
  .tasklist ul {margin-top:0;margin-bottom:0;}
  tr.alt {background-color:#eeeeee}
  #added {background-color:#ddffdd;}
  #addedchars {background-color:#99ff99;font-weight:bolder;}
  tr.alt #added {background-color:#ccf7cc;}
  #removed {background-color:#ffdddd;}
  #removedchars {background-color:#ff9999;font-weight:bolder;}
  tr.alt #removed {background-color:#f7cccc;}
  #copied {background-color:#ccccff;}
  tr.alt #copied {background-color:#bbbbf7;}
  #info {color:#888888;}
  #context {background-color:#eeeeee;}
  td {padding-left:.3em;padding-right:.3em;}
  tr.head {border-bottom-width:1px;border-bottom-style:solid;}
  tr.head td {padding:0;padding-top:.2em;}
  .task {background-color:#ffff00;}
  .comment {white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;white-space:pre-wrap;word-wrap:break-word;padding:4px;border:1px dashed #000000;background-color:#ffffdd}
  .error {color:red;}
  hr {border-width:0px;height:2px;background:black;}
--></style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="5">Commit in <b><tt>as2api/trunk/as2api/test</tt></b></td></tr>
<tr><td><tt><a href="#file1">tc_actionscript_lexer.rb</a></tt> </td><td></td><td align="right" id="added">+3</td><td align="right" id="removed">-25</td><td nowrap="nowrap" align="center">374 -&gt; 375</td></tr>
</table>
<pre class="comment">
Use official StringIO, rather than one I made before noticing Ruby's
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname">as2api/trunk/as2api/test</span><br />
<div class="fileheader"><big><b>tc_actionscript_lexer.rb</b></big> <small id="info">374 -&gt; 375</small></div>
<pre class="diff"><small id="info">--- trunk/as2api/test/tc_actionscript_lexer.rb        2006-04-07 00:28:10 UTC (rev 374)
+++ trunk/as2api/test/tc_actionscript_lexer.rb        2006-04-07 01:06:55 UTC (rev 375)
@@ -18,6 +18,7 @@
</small></pre><pre class="diff" id="context"> 
 require 'test/unit'
 require 'parse/aslexer'
</pre><pre class="diff" id="added">+require 'stringio'
</pre><pre class="diff" id="context"> 
 class TC_ActionScriptLexer &lt; Test::Unit::TestCase
 
</pre><pre class="diff"><small id="info">@@ -92,14 +93,14 @@
</small></pre><pre class="diff" id="context"> 
  private
   def simple_lex(text)
</pre><pre class="diff" id="removed">-    input = StrIO.new(text)
</pre><pre class="diff" id="added">+    input = Str<span id="addedchars">ing</span>IO.new(text)
</pre><pre class="diff" id="context">     lex = ASLexer.new(input)
     yield lex.get_next
     assert_nil(lex.get_next)
   end
 
   def assert_lex_to(text, *tokens)
</pre><pre class="diff" id="removed">-    input = StrIO.new(text)
</pre><pre class="diff" id="added">+    input = Str<span id="addedchars">ing</span>IO.new(text)
</pre><pre class="diff" id="context">     lex = ASLexer.new(input)
     tokens.each do |expected|
       tok = lex.get_next
</pre><pre class="diff"><small id="info">@@ -116,26 +117,3 @@
</small></pre><pre class="diff" id="context">   end
 
 end
</pre><pre class="diff" id="removed">-
-
-# Simple IO-like object the readsfrom a String, rather than a file
-# TODO: handle multiple lines
-class StrIO
-  def initialize(data)
-    @data = data
-  end
-
-  def readline
-    dat = @data
-    @data = nil
-    dat
-  end
-
-  def eof?
-    @data.nil?
-  end
-
-  def lineno
-    1
-  end
-end
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -&gt; email">CVSspam</a> 0.2.12</small></center>
</body></html>