Permalink
Browse files

change an assert by an exception, this way we can progress in the specs

git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/branches/icu@3665 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information...
1 parent 44a3b63 commit 539b892b5590adfb1a9ef5ca20fe85522a31cc60 @lrz lrz committed Mar 2, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 re.cpp
View
4 re.cpp
@@ -408,7 +408,9 @@ regexp_equal(VALUE rcv, SEL sel, VALUE other)
int
rb_reg_search(VALUE re, VALUE str, int pos, bool reverse)
{
- assert(!reverse); // TODO
+ if (reverse) {
+ rb_raise(rb_eRuntimeError, "reverse searching is not implemented yet");
+ }
const long len = rb_str_chars_len(str);
if (pos > len || pos < 0) {

0 comments on commit 539b892

Please sign in to comment.