Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

String#<< will raise a RangeError when passed the object which is out…

… of range
  • Loading branch information...
commit a1f921ce1adc9c1e4c3286df53927485218a5531 1 parent 57bc5a3
@Watson1978 Watson1978 authored
View
2  spec/frozen/tags/macruby/core/string/append_tags.txt
@@ -1,5 +1,3 @@
fails:String#<< raises RangeError for negative length argument
fails:String#<< with Integer returns a ASCII-8BIT string if self is US-ASCII and the argument is between 128-255 (inclusive)
fails:String#<< with Integer raises RangeError if the argument is an invalid codepoint for self's encoding
-fails:String#<< with Integer raises RangeError if the argument is negative
-fails:String#<< with Integer raises a RangeError when the given Fixnum is negative
View
2  spec/frozen/tags/macruby/core/string/concat_tags.txt
@@ -1,5 +1,3 @@
fails:String#concat raises RangeError for negative length argument
fails:String#concat with Integer returns a ASCII-8BIT string if self is US-ASCII and the argument is between 128-255 (inclusive)
fails:String#concat with Integer raises RangeError if the argument is an invalid codepoint for self's encoding
-fails:String#concat with Integer raises RangeError if the argument is negative
-fails:String#concat with Integer raises a RangeError when the given Fixnum is negative
View
2  string.c
@@ -2705,7 +2705,7 @@ rstr_concat(VALUE self, SEL sel, VALUE other)
return self;
out_of_range:
- rb_raise(rb_eArgError, "codepoint %ld out of range", codepoint);
+ rb_raise(rb_eRangeError, "codepoint %ld out of range", codepoint);
}
/*
Please sign in to comment.
Something went wrong with that request. Please try again.