text: import pytest
  
  from vyper import compiler
  
  valid_list = [
      """
  @external
  def foo():
      for i in range(10):
          pass
      """,
      """
  @external
  def foo():
      for i in range(10, 20):
          pass
      """,
      """
  @external
  def foo():
      x: int128 = 5
      for i in range(x, x + 10):
          pass
      """,
  ]
  
  
  @pytest.mark.parametrize("good_code", valid_list)
  def test_range_success(good_code):
      assert compiler.compile_code(good_code) is not None
  