From 0fa90f55cb30effc7abd0ae3748393bc3744a923 Mon Sep 17 00:00:00 2001 From: Prabhu Ramachandran Date: Tue, 8 Nov 2011 02:48:20 +0530 Subject: DOC: Example question in README. --- README.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.txt b/README.txt index e2612fa..b1cfb16 100644 --- a/README.txt +++ b/README.txt @@ -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] -- cgit