Skip to content

Commit

Permalink
Cleanup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmendel committed Feb 16, 2024
1 parent df261f2 commit 8244a1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/array_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@

it "warns about :length" do
_ {
obj = BinData::Array.new(type: :uint8, length: 3)
BinData::Array.new(type: :uint8, length: 3)
}.must_warn ":length is not used with BinData::Array. You probably want to change this to :initial_length"
end

it "warns about :read_length" do
_ {
obj = BinData::Array.new(type: :uint8, read_length: 3)
BinData::Array.new(type: :uint8, read_length: 3)
}.must_warn ":read_length is not used with BinData::Array. You probably want to change this to :initial_length"
end

Expand Down

0 comments on commit 8244a1c

Please sign in to comment.