Removed a bogus provide and two bogus tests.

(Which worked because the same functionality is part of `racket'.)
This commit is contained in:
Eli Barzilay 2011-06-06 10:02:48 -04:00
parent 0e0426a150
commit 2eb0a94677
4 changed files with 4 additions and 17 deletions

View File

@ -14,11 +14,6 @@
(let* ([sym (gensym)]) (let* ([sym (gensym)])
(check-eq? (identity sym) sym)))) (check-eq? (identity sym) sym))))
(test-suite "const"
(test-case "unique symbol"
(let* ([sym (gensym)])
(check-eq? ((const sym) 'x #:y 'z) sym))))
(test-suite "thunk" (test-suite "thunk"
(test-case "unique symbol" (test-case "unique symbol"
(let* ([count 0] (let* ([count 0]
@ -29,16 +24,6 @@
(test-suite "Higher Order Predicates" (test-suite "Higher Order Predicates"
(test-suite "negate"
(test-case "integer?"
(check-false ((negate integer?) 5)))
(test-case "not integer?"
(check-true ((negate integer?) 1/5)))
(test-case "non-boolean"
(check-false ((negate symbol->string) 'sym)))
(test-case "binary"
(check-false ((negate +) 1 2 3))))
(test-suite "conjoin" (test-suite "conjoin"
(test-case "no functions" (test-case "no functions"
(check-true ((conjoin) 'x #:y 'z))) (check-true ((conjoin) 'x #:y 'z)))

View File

@ -7,6 +7,7 @@
(utils tc-utils) (utils tc-utils)
racket/list racket/list
racket/match racket/match
racket/function
unstable/function unstable/function
(except-in racket/contract/base ->* ->) (except-in racket/contract/base ->* ->)
(prefix-in c: racket/contract/base) (prefix-in c: racket/contract/base)

View File

@ -4,6 +4,7 @@
(require (types abbrev numeric-predicates) (require (types abbrev numeric-predicates)
(rep type-rep) (rep type-rep)
racket/function
unstable/function unstable/function
(for-template racket/base racket/contract racket/flonum (types numeric-predicates))) (for-template racket/base racket/contract racket/flonum (types numeric-predicates)))

View File

@ -1,5 +1,5 @@
#lang racket/base #lang racket/base
(require racket/dict racket/match racket/function (require racket/dict racket/match
(for-syntax racket/base racket/list)) (for-syntax racket/base racket/list))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@ -367,7 +367,7 @@
;; functions ;; functions
identity identity
thunk thunk
negate conjoin disjoin conjoin disjoin
curryn currynr papply papplyr call curryn currynr papply papplyr call
;; macros ;; macros
eta eta* eta eta*