[MacRuby/MacRuby] 576348: removes the unused variable in StringScanner.
Branch: refs/heads/master Home: https://github.com/MacRuby/MacRuby Commit: 57634878831e72d1adbf266fadd59a2b95f2a84f https://github.com/MacRuby/MacRuby/commit/57634878831e72d1adbf266fadd59a2b95... Author: Watson <watson1978@gmail.com> Date: 2011-04-03 (Sun, 03 Apr 2011) Changed paths: M lib/strscan.rb Log Message: ----------- removes the unused variable in StringScanner. Commit: 76acad6935c06e25f108d063441397db165f80d3 https://github.com/MacRuby/MacRuby/commit/76acad6935c06e25f108d063441397db16... Author: Watson <watson1978@gmail.com> Date: 2011-04-03 (Sun, 03 Apr 2011) Changed paths: M lib/strscan.rb M spec/frozen/tags/macruby/library/stringscanner/match_tags.txt M spec/frozen/tags/macruby/library/stringscanner/pre_match_tags.txt Log Message: ----------- fixed a bug of StringScanner#pre_match after calling the StringScanner#match?. Test Script: {{{ require 'test/unit/assertions.rb' include Test::Unit::Assertions require 'strscan' s = StringScanner.new("This is a test") s.match?(/\w+/) assert_equal("This", s.matched) assert_equal("", s.pre_match) s.scan(/\w+/) s.match?(/\s/) assert_equal(" ", s.matched) assert_equal("This", s.pre_match) puts :ok }}} Compare: https://github.com/MacRuby/MacRuby/compare/17be463...76acad6
participants (1)
-
noreply@github.com