Skip to content

Commit

Permalink
update and renamed labs
Browse files Browse the repository at this point in the history
  • Loading branch information
rambasnet committed Oct 14, 2023
1 parent eb70f87 commit d649597
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions labs/dicts/morsecodepalindromes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Write a Python program to solve the Kattis problem Morse Code Palindrome: [https
## Lab Instructions

1. Open your CS0Lab-... repo in VS Code
2. Create a lab folder **morsecodepalindromes** inside your CS0Lab-... repository
3. Inside the lab folder, create two files provided in the lab folder.
2. Create a lab folder **dicts** inside your CS0Lab-... repository
3. Inside the lab folder, create two files morsecode.py and test_morsecode.py.
4. Type the partial code stub provided and fix all FIXMEs. (80 points)
5. Follow best programming practices by using proper white spaces, comments, etc.

Expand Down
4 changes: 2 additions & 2 deletions labs/fileio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ Python lab to explore working with files.

1. Open your CS0Lab-... repo in VS Code
2. Create a lab folder **fileio** inside your CS0Lab-... repository
3. Inside the lab folder, create three files: main.py, test_main.py, and data.in
3. Inside the lab folder, create three files: file_io.py, test_file_io.py, and data.in
- Copy data.in contents into data.in file.
4. Type the partial code stub provided in main.py and test_main.py files and fix all FIXMEs. (80 points)
4. Type the partial code stub provided and fix all FIXMEs. (80 points)
5. Follow best programming practices by using proper white spaces, comments, etc.
6. Unittest all the important functions using pytest. Install pytest if required.

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions labs/fileio/test_main.py → labs/fileio/test_file_io.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import main
import labs.fileio.file_io as file_io


def test_sort_ascending():
my_nums = [10, 9, 0. - 6]
main.sortListInAscendingOrder(my_nums)
file_io.sortListInAscendingOrder(my_nums)
assert (my_nums == [-6, 0, 9, 10])

# add 3 more test cases


def test_sort_descending():
my_nums = [0, -10, -1, 5, 100]
main.sortListInDescendingOrder(my_nums)
file_io.sortListInDescendingOrder(my_nums)
my_nums == [100, 5, 0, -1, -10]

# add 3 more test cases
4 changes: 2 additions & 2 deletions labs/lists/pet/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CS0 Lab - List and Unit testing
# CS0 Lab - Lists and Unit testing

Possible Points: 100

Expand All @@ -8,7 +8,7 @@ Write a Python program to solve the Kattis problem called pet: [https://open.kat

1. Open your CS0Lab-... repo in VS Code
2. Create lab folder **lists** inside your CS0Lab-... repository
3. Inside the pet folder, create two files: pet.py and test_pet.py
3. Inside the lab folder, create two files: pet.py and test_pet.py
4. Type the partial code stub provided in the lab folder and fix all FIXMEs. (80 points)
5. Follow best programming practices by using proper white spaces, comments, etc.

Expand Down

0 comments on commit d649597

Please sign in to comment.