Skip to content

Commit

Permalink
Added a spec for CharSet#include?.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Jul 11, 2012
1 parent 4e9ed14 commit ebb458f
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions spec/char_set_spec.rb
Expand Up @@ -49,12 +49,22 @@
end
end

it "should include Strings" do
@char_set.include_char?('A').should == true
it "should include characters" do
@char_set.include_char?('A').should be_true
end

it "should include Integers" do
@char_set.should include(0x41)
it "should include bytes" do
@char_set.include_byte?(0x41).should be_true
end

describe "#include?" do
it "should accept characters" do
@char_set.should include('A')
end

it "should accept bytes" do
@char_set.should include(0x41)
end
end

it "should be able to select bytes" do
Expand Down

0 comments on commit ebb458f

Please sign in to comment.