fixed problems uncovered by the dr dr
svn: r16356
This commit is contained in:
parent
b5dd323d94
commit
ba959a9b24
|
@ -1,14 +1,12 @@
|
|||
#lang scheme
|
||||
(require (planet "test.ss" ("schematics" "schemeunit.plt" 2))
|
||||
(planet "text-ui.ss" ("schematics" "schemeunit.plt" 2)))
|
||||
(require "1.ss" "1b.ss")
|
||||
(require schemeunit/test schemeunit/text-ui "1.ss" "1b.ss")
|
||||
|
||||
(add (make-basic-customer 'mf "matthias" "brookstone"))
|
||||
(add (make-basic-customer 'rf "robby" "beverly hills park"))
|
||||
(add (make-basic-customer 'fl "matthew" "pepper clouds town"))
|
||||
(add (make-basic-customer 'sk "shriram" "i city"))
|
||||
|
||||
(test/text-ui
|
||||
(run-tests
|
||||
(test-suite
|
||||
"manager"
|
||||
(test-equal? "id lookup" "matthias" (name 'mf))
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
#lang scheme
|
||||
(require (planet "test.ss" ("schematics" "schemeunit.plt" 2))
|
||||
(planet "text-ui.ss" ("schematics" "schemeunit.plt" 2))
|
||||
"2.ss")
|
||||
(require schemeunit/test schemeunit/text-ui "2.ss")
|
||||
|
||||
(define s0 (initialize (flat-contract integer?) =))
|
||||
(define s2 (push (push s0 2) 1))
|
||||
|
||||
(test/text-ui
|
||||
(run-tests
|
||||
(test-suite
|
||||
"stack"
|
||||
(test-true
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
#lang scheme
|
||||
(require (planet "test.ss" ("schematics" "schemeunit.plt" 2))
|
||||
(planet "text-ui.ss" ("schematics" "schemeunit.plt" 2))
|
||||
"3.ss")
|
||||
(require schemeunit/test schemeunit/text-ui "3.ss")
|
||||
|
||||
(define d0 (initialize (flat-contract integer?) =))
|
||||
(define d (put (put (put d0 'a 2) 'b 2) 'c 1))
|
||||
|
||||
(test/text-ui
|
||||
(run-tests
|
||||
(test-suite
|
||||
"dictionaries"
|
||||
(test-equal? "value for" 2 (value-for d 'b))
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
#lang scheme
|
||||
(require (planet "test.ss" ("schematics" "schemeunit.plt" 2))
|
||||
(planet "text-ui.ss" ("schematics" "schemeunit.plt" 2))
|
||||
"5.ss")
|
||||
(require schemeunit/test schemeunit/text-ui "5.ss")
|
||||
|
||||
(define s (put (put (initialize (flat-contract integer?) =) 2) 1))
|
||||
|
||||
(test/text-ui
|
||||
(run-tests
|
||||
(test-suite
|
||||
"queue"
|
||||
(test-true
|
||||
|
|
Loading…
Reference in New Issue
Block a user