[macruby-changes] [3665] MacRuby/branches/icu/re.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Tue Mar 2 12:38:42 PST 2010
Revision: 3665
http://trac.macosforge.org/projects/ruby/changeset/3665
Author: lsansonetti at apple.com
Date: 2010-03-02 12:38:40 -0800 (Tue, 02 Mar 2010)
Log Message:
-----------
change an assert by an exception, this way we can progress in the specs
Modified Paths:
--------------
MacRuby/branches/icu/re.cpp
Modified: MacRuby/branches/icu/re.cpp
===================================================================
--- 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) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100302/83a76634/attachment.html>
More information about the macruby-changes
mailing list