diff options
author | Prabhu Ramachandran | 2011-11-08 02:48:20 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2011-11-08 02:48:20 +0530 |
commit | 0fa90f55cb30effc7abd0ae3748393bc3744a923 (patch) | |
tree | 2e711768653fca2690793da143426f1348f784df /README.txt | |
parent | 13a40a1a4ad77ee195100453ef5c37c889ca1f26 (diff) | |
download | online_test-0fa90f55cb30effc7abd0ae3748393bc3744a923.tar.gz online_test-0fa90f55cb30effc7abd0ae3748393bc3744a923.tar.bz2 online_test-0fa90f55cb30effc7abd0ae3748393bc3744a923.zip |
DOC: Example question in README.
Diffstat (limited to 'README.txt')
-rw-r--r-- | README.txt | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -1,3 +1,6 @@ +Installation +============= + To install/deploy this app follow the steps below: 1. Clone this repository. @@ -13,3 +16,23 @@ To install/deploy this app follow the steps below: And you should be all set. +WARNING: django is running in debug mode for this currently, CHANGE it +during deployment + +A sample question +================== + +Here is an example of a good question and tests for it. On the admin +interface after you login, add a new question with the following fields: + + Summary: Fibonnaci + + Question: Write function called "fib" which takes a single integer + argument (say "n") and returns a list of the first "n" fibonacci + numbers. For example fib(3) -> [1, 1, 2]. + + Points: 1 + + Test: + assert fib(3) == [1, 1, 2] + assert fib(6) == [1, 1, 2, 3, 5, 8] |