change an assert by an exception, this way we can progress in the specs
--- MacRuby/branches/icu/re.cpp 2010-03-02 20:26:41 UTC (rev 3664)
+++ MacRuby/branches/icu/re.cpp 2010-03-02 20:38:40 UTC (rev 3665)
@@ -408,7 +408,9 @@
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) {