Skip to content

Commit

Permalink
Add some more specs from rubyspec and fix last push
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Oct 30, 2013
1 parent be46c47 commit a8a216f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
6 changes: 0 additions & 6 deletions spec/corelib/string/downcase_spec.rb

This file was deleted.

3 changes: 3 additions & 0 deletions spec/filters/bugs/string.rb
Expand Up @@ -23,4 +23,7 @@
fails "String#start_with? converts its argument using :to_str"
fails "String#end_with? converts its argument using :to_str"
fails "String#end_with? returns true if other is empty"
fails "String#downcase is locale insensitive (only replaces A-Z)"
fails "String#intern does not special case certain operators"
fails "String#to_sym does not special case certain operators"
end
3 changes: 3 additions & 0 deletions spec/filters/unsupported/mutable_strings.rb
Expand Up @@ -8,4 +8,7 @@
fails "String#reverse! raises a RuntimeError on a frozen instance that would not be modified"
fails "String#reverse! raises a RuntimeError on a frozen instance that is modified"
fails "String#reverse! reverses self in place and always returns self"
fails "String#downcase! raises a RuntimeError when self is frozen"
fails "String#downcase! returns nil if no modifications were made"
fails "String#downcase! modifies self in place"
end
1 change: 1 addition & 0 deletions spec/filters/unsupported/string_subclasses.rb
@@ -1,4 +1,5 @@
opal_filter "String subclasses" do
fails "String#upcase returns a subclass instance for subclasses"
fails "String#swapcase returns subclass instances when called on a subclass"
fails "String#downcase returns a subclass instance for subclasses"
end
1 change: 1 addition & 0 deletions spec/filters/unsupported/tainted.rb
Expand Up @@ -49,4 +49,5 @@
fails "String#reverse taints the result if self is tainted"

fails "Pathname.new is tainted if path is tainted"
fails "String#downcase taints result when self is tainted"
end
1 change: 1 addition & 0 deletions spec/rubyspecs
Expand Up @@ -224,6 +224,7 @@ core/matchdata/to_a_spec
core/range/begin_spec
core/range/end_spec

core/string/downcase_spec
core/string/empty_spec
core/string/end_with_spec
core/string/include_spec
Expand Down

0 comments on commit a8a216f

Please sign in to comment.