Skip to content

Commit

Permalink
more coverage for cabinet/tyrant #keys and \0
Browse files Browse the repository at this point in the history
  • Loading branch information
jmettraux committed Jun 1, 2009
1 parent 0135b85 commit 331efa7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/cabinet_spec.rb
Expand Up @@ -137,6 +137,11 @@
l.free
end

it 'should retrieve keys that contain \0' do

@db.keys.include?("toto#{0.chr}5").should.be.true
end

it 'should retrieve forward matching keys when key contains \0' do

@db.keys(:prefix => 'toto').should.equal([ "toto#{0.chr}5" ])
Expand Down
5 changes: 5 additions & 0 deletions spec/tyrant_spec.rb
Expand Up @@ -137,6 +137,11 @@
l.free
end

it 'should retrieve keys that contain \0' do

@db.keys.include?("toto#{0.chr}5").should.be.true
end

it 'should retrieve forward matching keys when key contains \0' do

@db.keys(:prefix => 'toto').should.equal([ "toto#{0.chr}5" ])
Expand Down

0 comments on commit 331efa7

Please sign in to comment.