Fixing a test bug
svn: r16755
This commit is contained in:
parent
2b4c9eb0d0
commit
523f280b53
|
@ -1,6 +1,5 @@
|
|||
;; Data file for quiz.ss, written by Don Felgar
|
||||
|
||||
'("This is a quiz on English weights and measures. Good luck!"
|
||||
("This is a quiz on English weights and measures. Good luck!"
|
||||
(
|
||||
("How many imperial gallons in a firkin?"
|
||||
("4" "5" "8" "9")
|
||||
|
|
|
@ -33,9 +33,9 @@
|
|||
(define question-answer caddr)
|
||||
(define question-explanation cadddr)
|
||||
|
||||
(define quiz (with-input-from-file *data-file* read))
|
||||
(define quiz-intro (car quiz))
|
||||
(define all-questions (cadr quiz))
|
||||
(define quiz (file->value *data-file*))
|
||||
(define quiz-intro (first quiz))
|
||||
(define all-questions (second quiz))
|
||||
|
||||
;; ask-question: question number number -> (listof (cons symbol string))
|
||||
;; Page for asking quiz question.
|
||||
|
|
Loading…
Reference in New Issue
Block a user