Skip to content
Snippets Groups Projects
Commit 4c334308 authored by tuhe's avatar tuhe
Browse files

updates to readme.md

parent f1b5c598
No related branches found
No related tags found
No related merge requests found
Showing
with 26 additions and 1709 deletions
...@@ -209,7 +209,7 @@ When this is run, the titles are shown as follows: ...@@ -209,7 +209,7 @@ When this is run, the titles are shown as follows:
| | | |_ __ _| |_| | \/_ __ __ _ __| | ___ | | | |_ __ _| |_| | \/_ __ __ _ __| | ___
| | | | '_ \| | __| | __| '__/ _` |/ _` |/ _ \ | | | | '_ \| | __| | __| '__/ _` |/ _` |/ _ \
| |_| | | | | | |_| |_\ \ | | (_| | (_| | __/ | |_| | | | | | |_| |_\ \ | | (_| | (_| | __/
\___/|_| |_|_|\__|\____/_| \__,_|\__,_|\___| v0.1.0, started: 09/09/2021 16:28:20 \___/|_| |_|_|\__|\____/_| \__,_|\__,_|\___| v0.1.0, started: 09/09/2021 16:31:22
CS 101 Report 2 (use --help for options) CS 101 Report 2 (use --help for options)
Question 1: Week1 Question 1: Week1
...@@ -223,7 +223,7 @@ Question 2: The same problem as before with nicer titles ...@@ -223,7 +223,7 @@ Question 2: The same problem as before with nicer titles
* q2.2) Checking if reverse_list([1, 2, 3]) = [3, 2, 1]............................................................PASS * q2.2) Checking if reverse_list([1, 2, 3]) = [3, 2, 1]............................................................PASS
* q2) Total...................................................................................................... 8/8 * q2) Total...................................................................................................... 8/8
Total points at 16:28:20 (0 minutes, 0 seconds)....................................................................18/18 Total points at 16:31:22 (0 minutes, 0 seconds)....................................................................18/18
``` ```
What happens behind the scenes when we set `self.title` is that the result is pre-computed on the instructors machine and cached. This means the last test will display the correct result regardless of how `reverse_list` has been implemented by the student. The titles are also shown correctly when the method is run as a unittest. What happens behind the scenes when we set `self.title` is that the result is pre-computed on the instructors machine and cached. This means the last test will display the correct result regardless of how `reverse_list` has been implemented by the student. The titles are also shown correctly when the method is run as a unittest.
...@@ -361,7 +361,8 @@ Just to show it works we will load both `.token`-files and print the results: ...@@ -361,7 +361,8 @@ Just to show it works we will load both `.token`-files and print the results:
``` ```
The results (shown in a `(points_obtained, possible_points)` format) will be printed as: The results (shown in a `(points_obtained, possible_points)` format) will be printed as:
```terminal ```terminal
Student's score was: (10, 10)
My independent evaluation of the students score was (5, 10)
``` ```
As expected, the (failed) hidden tests reduces the total points obtained. It will be easy to check, for instance by calling the hidden tests As expected, the (failed) hidden tests reduces the total points obtained. It will be easy to check, for instance by calling the hidden tests
`def test_something_hidden` when the regular test, `test_something`, passes and the hidden test fails. `def test_something_hidden` when the regular test, `test_something`, passes and the hidden test fails.
......
No preview for this file type
...@@ -195,7 +195,7 @@ Just to show it works we will load both `.token`-files and print the results: ...@@ -195,7 +195,7 @@ Just to show it works we will load both `.token`-files and print the results:
``` ```
The results (shown in a `(points_obtained, possible_points)` format) will be printed as: The results (shown in a `(points_obtained, possible_points)` format) will be printed as:
```terminal ```terminal
{{example_docker_docker_results_txt }} {{example_docker_instructor_cs103_docker_results_txt }}
``` ```
As expected, the (failed) hidden tests reduces the total points obtained. It will be easy to check, for instance by calling the hidden tests As expected, the (failed) hidden tests reduces the total points obtained. It will be easy to check, for instance by calling the hidden tests
`def test_something_hidden` when the regular test, `test_something`, passes and the hidden test fails. `def test_something_hidden` when the regular test, `test_something`, passes and the hidden test fails.
......
No preview for this file type
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
| | | |_ __ _| |_| | \/_ __ __ _ __| | ___ | | | |_ __ _| |_| | \/_ __ __ _ __| | ___
| | | | '_ \| | __| | __| '__/ _` |/ _` |/ _ \ | | | | '_ \| | __| | __| '__/ _` |/ _` |/ _ \
| |_| | | | | | |_| |_\ \ | | (_| | (_| | __/ | |_| | | | | | |_| |_\ \ | | (_| | (_| | __/
\___/|_| |_|_|\__|\____/_| \__,_|\__,_|\___| v0.1.0, started: 09/09/2021 16:28:20 \___/|_| |_|_|\__|\____/_| \__,_|\__,_|\___| v0.1.0, started: 09/09/2021 16:31:22
CS 101 Report 2 (use --help for options) CS 101 Report 2 (use --help for options)
Question 1: Week1 Question 1: Week1
...@@ -17,4 +17,4 @@ Question 2: The same problem as before with nicer titles ...@@ -17,4 +17,4 @@ Question 2: The same problem as before with nicer titles
* q2.2) Checking if reverse_list([1, 2, 3]) = [3, 2, 1]............................................................PASS * q2.2) Checking if reverse_list([1, 2, 3]) = [3, 2, 1]............................................................PASS
* q2) Total...................................................................................................... 8/8 * q2) Total...................................................................................................... 8/8
Total points at 16:28:20 (0 minutes, 0 seconds)....................................................................18/18 Total points at 16:31:22 (0 minutes, 0 seconds)....................................................................18/18
No preview for this file type
No preview for this file type
...@@ -41,7 +41,7 @@ if __name__ == "__main__": #!s=docker_a ...@@ -41,7 +41,7 @@ if __name__ == "__main__": #!s=docker_a
# Save it for the Readme # Save it for the Readme
s = "" s = ""
s += f"Student's score was: {results['total']}" s += f"Student's score was: {results['total']}\n"
s += f"My independent evaluation of the students score was {checked_token['total']}" s += f"My independent evaluation of the students score was {checked_token['total']}"
with open("docker_results.txt", 'w') as f: with open("docker_results.txt", 'w') as f:
f.write(s) f.write(s)
Student's score was: (10, 10)My independent evaluation of the students score was (5, 10) Student's score was: (10, 10)
\ No newline at end of file My independent evaluation of the students score was (5, 10)
\ No newline at end of file
No preview for this file type
No preview for this file type
No preview for this file type
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment