summaryrefslogtreecommitdiff
path: root/spec/ruby/core/regexp/casefold_spec.rb
blob: 55efcaa76523e15bdb9a9258807c10ffb26f6e98 (plain)
1
2
3
4
5
6
7
8
require File.expand_path('../../../spec_helper', __FILE__)

describe "Regexp#casefold?" do
  it "returns the value of the case-insensitive flag" do
    /abc/i.casefold?.should == true
    /xyz/.casefold?.should == false
  end
end