intellij-plugin/features/ai-hints-python/testSrc/com/jetbrains/edu/aiHints/python/PyFunctionDiffReducerTest.kt [468:496]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    functionName = "nested_structures",
    currentCode = """
        def nested_structures(items):
            result = 0
            for item in items:
                if item > 0:
                   pass
    """,
    codeHint = """
        def nested_structures(items):
            result = 0
            for item in items:
                if item > 0:
                    while item > 0:
                        result += 1
                        item -= 1
            return result
    """,
    expectedResult = """
        def nested_structures(items):
            result = 0
            for item in items:
                if item > 0:
                    while item > 0:
                        pass
    """
  )

  @Test
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



intellij-plugin/features/ai-hints-python/testSrc/com/jetbrains/edu/aiHints/python/PyFunctionDiffReducerTest.kt [498:526]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    functionName = "nested_structures",
    currentCode = """
        def nested_structures(items):
            result = 0
            for item in items:
                if item > 0:
                   pass
    """,
    codeHint = """
        def nested_structures(items):
            result = 0
            for item in items:
                if item > 0:
                    while item > 0:
                        result += 1
                        item -= 1
            return result
    """,
    expectedResult = """
        def nested_structures(items):
            result = 0
            for item in items:
                if item > 0:
                    while item > 0:
                        pass
    """
  )

  @Test
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



