input: Write a function to generate a list of numbers using a while loop in Python. The function should append the current number to the list and increment the number until it reaches a specified limit. The function should return the generated list.
  assert generate_number_list(5) == [0, 1, 2, 3, 4]
  assert generate_number_list(0) == []
  assert generate_number_list(10) == [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
output: def generate_number_list(limit):
      numbers = []
      current = 0
      while current < limit:
          numbers.append(current)
          current += 1
      return numbers