Commit eb4e88be by Dan Collis-Puro

Clarify tests for frame dimensions

parent 6721b469
...@@ -199,9 +199,9 @@ def assert_file_not_exists(path) ...@@ -199,9 +199,9 @@ def assert_file_not_exists(path)
end end
def assert_frame_dimensions(range, frames) def assert_frame_dimensions(range, frames)
frames.each_with_index do |frame, idx| frames.each_with_index do |frame, frame_index|
frame.split('x').each_with_index do |dim, idx| frame.split('x').each_with_index do |dimension, dimension_index |
assert range.include?(dim.to_i), "Frame #{idx}[#{idx}] should have been within #{range.inspect}, but was #{dim}" assert range.include?(dimension.to_i), "Frame #{frame_index}[#{dimension_index}] should have been within #{range.inspect}, but was #{dimension}"
end end
end end
end end
\ No newline at end of file
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