Skip to content

Commit dc5f720

Browse files
committed
dsa complete
1 parent a747224 commit dc5f720

3 files changed

Lines changed: 30 additions & 0 deletions

File tree

docs/instructor-guides/io-testing.mdx

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,33 @@ We'll be selecting `Python` for this guide.
4949
You would see that a two new files have opened up on your right side of the screen as soon as you've select the verified solution.
5050

5151
![](images/guides/io-lab/verified-solution.png)
52+
53+
### 5. Setting up verified solution
54+
55+
Once you've selected the languages for the verfied solution, you should be able to see two files in the text editor on the right side of your screen.
56+
57+
Both of the files will be having the same name, but one file would be part of the solution folder like `solution/main.py`. This file would contain the verified solution for the challenges. Now it's time to write the solution for the challenge
58+
59+
![](images/guides/io-lab/verified-solution-written.png)
60+
61+
### 6. Setup test cases
62+
63+
Now that we are done with the verified solution, setting up the test cases in the next step to get your I/O Lab ready.
64+
65+
You should be able to see a `+ (plus symbol)` beside the test cases section. Clicking on the `+` will give you a new text box to give in the input values.
66+
67+
If you're case requires a large input set (which can be very hard to copy/paste or type on your own) we allow ouro creators to update the inputs using a text file. All files that have `UTF-8` encoding format.
68+
69+
If the test cases are simple to set up you can set them up normally by typing in the text area.
70+
71+
![](images/guides/io-lab/setup-test-case.png)
72+
73+
### 7. Generate the output for the test cases
74+
75+
Now that the verified solution is written and the test case's inputs are written. It's time for us to generate the output of the test cases. Clicking on the `Generate Output` button will generate the output for all the test cases that you have setup.
76+
77+
If there is any error while generating the output, the error message will be shown in the output placeholder of the test case. In that case, you can edit the verified solution and attempt to generate the output again.
78+
79+
### 8. Setup boilerplate and verify the boilerplate code
80+
81+
You can add some stubs in the boilerplate code to help the student's write the code, once you're done writing this. You can click `run tests` button to verify that they are no errors caused by the boilerplate code you've written and code does not pass the test cases (the complete solution is not written in the boilerplate code area)
57.6 KB
Loading
79.2 KB
Loading

0 commit comments

Comments
 (0)