Skip to content

Commit

Permalink
ASSIGNMENT_CREATION_README.md: Some more instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
ds26gte committed Oct 21, 2022
1 parent 87f041c commit ddb337e
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions ASSIGNMENT_CREATION_README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
# Examplar Assignment Creation:

0. Prepare the wheats and chaffs:
* Comment out tests
* Explicitly providing only functions required by the spec
* Given a spec that requires one or more functions, the
wheat and chaff files are implementation of these
functions. These files should explicitly provide only the
functions required by the spec. E.g., if the functions in
the spec are named `fact` and `fib`, then each of the
wheat/chaff files should have as header:
```
provide { fact: fact, fib: fib }
provide-types *
```
* If any tests are provided within these implementations they
should be commented out
1. Make folders for wheats and chaffs that should be included in Examplar,
note their IDs, and set them (temporarily) to be publicly accessible via link
2. Load the Examplar dummy assignment (https://pyret.cs.brown.edu/assignment/1QIZ_LpROVf4yzWTlfTIJcturEyIs71u_)
and open the console
and open the JavaScript console. Note: The following Steps 3,
4, and 5 are to be
done in the JS console, not in the Pyret interaction
window!
3. Compile the wheats by executing
```javascript
Expand Down Expand Up @@ -93,5 +106,13 @@
...
end
```
If your chaffs/wheats defined and provided `fact` and `fib` as described in Step 0, then your tests will involve comparisons of calls to `fact`/`fib` to their expected values, e.g.,
```
check:
fact(5) is 120
fib(11) is 89
end
```
10. Access the assignment at https://pyret.cs.brown.edu/assignment/<ID of folder from step 5>

0 comments on commit ddb337e

Please sign in to comment.