test/array_test.rb in bindata-2.0.0 vs test/array_test.rb in bindata-2.1.0
- old
+ new
@@ -166,11 +166,11 @@
it "has correct debug name" do
obj[2].debug_name.must_equal "obj[2]"
end
it "has correct offset" do
- obj[2].offset.must_equal ExampleSingle.new.num_bytes * 2
+ obj[2].rel_offset.must_equal ExampleSingle.new.num_bytes * 2
end
it "has correct num_bytes" do
obj.num_bytes.must_equal 5 * ExampleSingle.new.num_bytes
end
@@ -362,10 +362,10 @@
it "returns num_bytes" do
obj.num_bytes.must_equal 2
end
it "has correct offset" do
- obj[7].offset.must_equal 0
- obj[8].offset.must_equal 1
+ obj[7].rel_offset.must_equal 0
+ obj[8].rel_offset.must_equal 1
end
end