      "\n",
      "\n",
      "def main():\n",
      "    test = TestSelectionSort()\n",
      "    test.test_selection_sort(selection_sort)\n",
      "    try:\n",
      "        test.test_selection_sort(selection_sort_recursive)\n",
      "        test.test_selection_sort(selection_sort_iterative_alt)\n",
      "    except NameError:\n",
      "        # Alternate solutions are only defined\n",
 
</s> remove     "    test.test_selection_sort(selection_sort)\n",
 </s> add     "    selection_sort = SelectionSort()\n",
    "    test.test_selection_sort(selection_sort.sort)\n", </s> remove     "        test.test_selection_sort(selection_sort_recursive)\n",
    "        test.test_selection_sort(selection_sort_iterative_alt)\n",
 </s> add     "        test.test_selection_sort(selection_sort.sort_recursive)\n",
    "        test.test_selection_sort(selection_sort.sor_iterative_alt)\n", </s> remove     "        test.test_selection_sort(selection_sort_recursive)\n",
    "        test.test_selection_sort(selection_sort_iterative_alt)\n",
 </s> add     "        test.test_selection_sort(selection_sort.sort_recursive)\n",
    "        test.test_selection_sort(selection_sort.sor_iterative_alt)\n", </s> remove     "def swap(data, i, j):\n",
    "    # Raises an exception if: \n",
    "    # -data is None\n",
    "    # -i or j are >= len(data)\n",
    "    if i != j:\n",
    "        data[i], data[j] = data[j], data[i]\n",
 </s> add     "    def sort_iterative_alt(self, data):\n",
    "        if data is None:\n",
    "            raise TypeError('data cannot be None')\n",
    "        if len(data) < 2:\n",
    "            return data\n",
    "        for i in range(len(data)-1):\n",
    "            self._swap(data, i, self._find_min_index(data, i))\n",
    "        return data\n", </s> remove         test.test_selection_sort(selection_sort_recursive)
        test.test_selection_sort(selection_sort_iterative_alt)
 </s> add         test.test_selection_sort(selection_sort.sort_recursive)
        test.test_selection_sort(selection_sort.sor_iterative_alt)
    "    selection_sort = SelectionSort()\n",
    "    test.test_selection_sort(selection_sort.sort)\n",
      "\n",
      "\n",
      "def main():\n",
      "    test = TestSelectionSort()\n",
    "    selection_sort = SelectionSort()\n",
    "    test.test_selection_sort(selection_sort.sort)\n",
      "    try:\n",
      "        test.test_selection_sort(selection_sort_recursive)\n",
      "        test.test_selection_sort(selection_sort_iterative_alt)\n",
      "    except NameError:\n",
      "        # Alternate solutions are only defined\n",
keep keep keep keep replace keep keep keep keep keep
 Update selection sort challenge (#131)

Update constraints, test cases, code, and tests. 
sorting_searching/selection_sort/selection_sort_challenge.ipynb