class ChunkyPNG::Canvas

def assert_height!(vector_length)

Throws an exception if the vector_length does not match this canvas' height.
def assert_height!(vector_length)
  raise ChunkyPNG::ExpectationFailed, "The length of the vector (#{vector_length}) does not match the canvas height (#{height})!" if height != vector_length
  return true
end