svn: r17109

This commit is contained in:
Matthias Felleisen 2009-11-30 16:16:50 +00:00
parent 2bb3403f88
commit bd0f694803
3 changed files with 19 additions and 1 deletions

View File

@ -8,6 +8,9 @@
(define tool-names (list "How to Design Programs")) (define tool-names (list "How to Design Programs"))
(define tool-urls (list "http://www.htdp.org/")) (define tool-urls (list "http://www.htdp.org/"))
(define compile-omit-paths
'("test-error.ss"))
(define textbook-pls (define textbook-pls
(list (list '("htdp-icon.gif" "icons") (list (list '("htdp-icon.gif" "icons")
"How to Design Programs" "How to Design Programs"

View File

@ -38,4 +38,3 @@ string-ref : String Nat -> Char
NOTE: NOTE:
substring consumes 2 or 3 arguments substring consumes 2 or 3 arguments

View File

@ -0,0 +1,16 @@
;; The first three lines of this file were inserted by DrScheme. They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-beginner-reader.ss" "lang")((modname bar) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ())))
(check-error (error) "")
(check-error (error 1) "1")
(check-error (error 'a) "a: ")
(check-error (error 'a "bad input") "a: bad input")
(check-error (error 'a "bad input: " 1) "a: bad input: 1")
(check-error (error 'a "bad input: " 1 " and " "hello") "a: bad input: 1 and hello")
(check-error (error 'a "bad input: " 1 " and " false) "a: bad input: 1 and false")
(check-error (error 'a "uhoh " (list 1 2 3)) "a: uhoh (cons 1 (cons 2 (cons 3 empty)))")
(define-struct err (str))
(check-error (error 'a "bad input: " 1 " and " (make-err "hello"))
"a: bad input: 1 and (make-err \"hello\")")