summaryrefslogtreecommitdiff
path: root/spec/ruby/core/range/cover_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/range/cover_spec.rb')
-rw-r--r--spec/ruby/core/range/cover_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/ruby/core/range/cover_spec.rb b/spec/ruby/core/range/cover_spec.rb
index fa881607e9..eb7cddc967 100644
--- a/spec/ruby/core/range/cover_spec.rb
+++ b/spec/ruby/core/range/cover_spec.rb
@@ -7,4 +7,8 @@ describe "Range#cover?" do
it_behaves_like :range_cover_and_include, :cover?
it_behaves_like :range_cover, :cover?
it_behaves_like :range_cover_subrange, :cover?
+
+ it "covers U+9995 in the range U+0999..U+9999" do
+ ("\u{999}".."\u{9999}").cover?("\u{9995}").should be_true
+ end
end