From 7e21117858a9fb15c33a54810fc67a2fa8c4c219 Mon Sep 17 00:00:00 2001 From: eslopfer Date: Wed, 25 Jan 2023 18:12:41 +0000 Subject: [PATCH] chore(clean_the_list): move to right repository --- sh/tests/clean_the_list_test.py | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 sh/tests/clean_the_list_test.py diff --git a/sh/tests/clean_the_list_test.py b/sh/tests/clean_the_list_test.py deleted file mode 100644 index ffa511ec..00000000 --- a/sh/tests/clean_the_list_test.py +++ /dev/null @@ -1,30 +0,0 @@ -import sys - -sys.path.append('student') - -from shopping import clean_list - -def test_normal_input(): - shopping_list = ['book', 'pen', 'milk', 'bread'] - expected_output = ['1/ Book', '2/ Pen', '3/ Milk', '4/ Bread'] - assert clean_list(shopping_list) == expected_output - -def test_empty_input(): - shopping_list = [] - expected_output = [] - assert clean_list(shopping_list) == expected_output - -def test_multiple_spaces(): - shopping_list = [' shirt ', ' pants ', 'milk', 'shoes'] - expected_output = ['1/ Shirt', '2/ Pants', '3/ Milk', '4/ Shoes'] - assert clean_list(shopping_list) == expected_output - -def test_missing_milk(): - shopping_list = ['computer', 'chair', 'desk'] - expected_output = ['1/ Computer', '2/ Chair', '3/ Desk', '4/ Milk'] - assert clean_list(shopping_list) == expected_output - -def test_word_with_space(): - shopping_list = ['tooth brush', 'hand sanitizer', 'milk', 'toilet paper'] - expected_output = ['1/ Tooth brush', '2/ Hand sanitizer', '3/ Milk', '4/ Toilet Paper'] - assert clean_list(shopping_list) == expected_output