Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #595 from kachick/fix-string-check_frozen
Fix side effect methods in String when self is a frozen object
- Loading branch information
Showing
with
12 additions
and 12 deletions.
- +0 −1 spec/tags/core/string/capitalize_tags.txt
- +0 −2 spec/tags/core/string/chomp_tags.txt
- +0 −2 spec/tags/core/string/chop_tags.txt
- +0 −1 spec/tags/core/string/downcase_tags.txt
- +0 −1 spec/tags/core/string/next_tags.txt
- +0 −2 spec/tags/core/string/reverse_tags.txt
- +0 −1 spec/tags/core/string/succ_tags.txt
- +0 −1 spec/tags/core/string/swapcase_tags.txt
- +0 −1 spec/tags/core/string/upcase_tags.txt
- +12 −0 topaz/objects/stringobject.py
@@ -1,4 +1,2 @@ | ||
fails:String#chop returns a new string with the last character removed | ||
fails:String#chop! behaves just like chop, but in-place | ||
fails:String#chop! raises a RuntimeError on a frozen instance that is modified | ||
fails:String#chop! raises a RuntimeError on a frozen instance that would not be modified |