Commit eb4e88be by Dan Collis-Puro

Clarify tests for frame dimensions

parent 6721b469
......@@ -199,9 +199,9 @@ def assert_file_not_exists(path)
end
def assert_frame_dimensions(range, frames)
frames.each_with_index do |frame, idx|
frame.split('x').each_with_index do |dim, idx|
assert range.include?(dim.to_i), "Frame #{idx}[#{idx}] should have been within #{range.inspect}, but was #{dim}"
frames.each_with_index do |frame, frame_index|
frame.split('x').each_with_index do |dimension, dimension_index |
assert range.include?(dimension.to_i), "Frame #{frame_index}[#{dimension_index}] should have been within #{range.inspect}, but was #{dimension}"
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment