fix to work w/ racket renamings
original commit: b308a52240c9edcdd0c51bad5612314d44894b51
This commit is contained in:
parent
2addf717a0
b91ae08c0e
8692a5c39e
331f098693
d2b748a318
6890aab175
7f3cf8a3ef
8cf31c8de6
94184a7671
commit
3bfbc7da7f
|
@ -2,7 +2,7 @@
|
|||
|
||||
(provide go go/text)
|
||||
|
||||
(require rktunit rktunit/text-ui
|
||||
(require racunit racunit/text-ui
|
||||
mzlib/etc scheme/port
|
||||
compiler/compiler
|
||||
scheme/match
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
;; really badly wrong.
|
||||
|
||||
(: check (All (a) ((a a -> Boolean) a a -> Boolean)))
|
||||
;; Simple check function as RktUnit doesn't work in Typed Scheme (yet)
|
||||
;; Simple check function as RacUnit doesn't work in Typed Scheme (yet)
|
||||
(define (check f a b)
|
||||
(if (f a b)
|
||||
#t
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
scheme/unsafe/ops)
|
||||
|
||||
(: check (All (a) ((a a -> Boolean) a a -> Boolean)))
|
||||
;; Simple check function as RktUnit doesn't work in Typed Scheme (yet)
|
||||
;; Simple check function as RacUnit doesn't work in Typed Scheme (yet)
|
||||
(define (check f a b)
|
||||
(if (f a b)
|
||||
#t
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
;; really badly wrong.
|
||||
|
||||
(: check (All (a) ((a a -> Boolean) a a -> Boolean)))
|
||||
;; Simple check function as RktUnit doesn't work in Typed Scheme (yet)
|
||||
;; Simple check function as RacUnit doesn't work in Typed Scheme (yet)
|
||||
(define (check f a b)
|
||||
(if (f a b)
|
||||
#t
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
"subst-tests.ss" ;; pass
|
||||
"infer-tests.ss" ;; pass
|
||||
"contract-tests.ss"
|
||||
(r:infer infer infer-dummy) rktunit)
|
||||
(r:infer infer infer-dummy) racunit)
|
||||
|
||||
(provide unit-tests)
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
(rep type-rep filter-rep object-rep)
|
||||
(types utils union convenience)
|
||||
(utils tc-utils)
|
||||
rktunit)
|
||||
racunit)
|
||||
|
||||
(define-syntax-rule (t e)
|
||||
(test-not-exn (format "~a" e) (lambda () (type->contract e (lambda _ (error "type could not be converted to contract"))))))
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
(require (rep type-rep)
|
||||
(r:infer infer)
|
||||
(types convenience union utils abbrev)
|
||||
rktunit)
|
||||
racunit)
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
(private base-types-new base-types-extra colon)
|
||||
(for-template (private base-types-new base-types-extra base-env colon))
|
||||
(private parse-type)
|
||||
rktunit)
|
||||
racunit)
|
||||
|
||||
(provide parse-type-tests)
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
(rep type-rep)
|
||||
(r:infer infer infer-dummy)
|
||||
(types convenience subtype union remove-intersect)
|
||||
rktunit)
|
||||
racunit)
|
||||
|
||||
(define-syntax (over-tests stx)
|
||||
(syntax-case stx ()
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
(require "test-utils.ss" (for-syntax scheme/base)
|
||||
(rep type-rep)
|
||||
(types utils abbrev)
|
||||
rktunit)
|
||||
racunit)
|
||||
|
||||
(define-syntax-rule (s img var tgt result)
|
||||
(test-eq? "test" (substitute img 'var tgt) result))
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
(rep type-rep)
|
||||
(env init-envs type-environments)
|
||||
(r:infer infer infer-dummy)
|
||||
rktunit
|
||||
racunit
|
||||
(for-syntax scheme/base))
|
||||
|
||||
(provide subtype-tests)
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
typed-scheme/utils/utils
|
||||
(for-syntax scheme/base)
|
||||
(types comparison utils)
|
||||
rktunit rktunit/text-ui)
|
||||
racunit racunit/text-ui)
|
||||
|
||||
(provide private typecheck (rename-out [infer r:infer]) utils env rep types)
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
|||
(run-tests (mk-suite ts)))
|
||||
|
||||
(define (test/gui suite)
|
||||
(((dynamic-require 'rktunit/private/gui/gui 'make-gui-runner))
|
||||
(((dynamic-require 'racunit/private/gui/gui 'make-gui-runner))
|
||||
suite))
|
||||
|
||||
(define (run/gui . ts)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
(require "test-utils.ss" (for-syntax scheme/base)
|
||||
(rep type-rep)
|
||||
(types comparison abbrev union)
|
||||
rktunit)
|
||||
racunit)
|
||||
|
||||
(provide type-equal-tests)
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
(utils tc-utils utils)
|
||||
unstable/mutated-vars
|
||||
(env type-name-env type-environments init-envs)
|
||||
schemeunit
|
||||
racunit
|
||||
syntax/parse
|
||||
(for-syntax (utils tc-utils)
|
||||
(typecheck typechecker)
|
||||
|
|
|
@ -34,9 +34,9 @@
|
|||
[gui-utils:ok/cancel-buttons
|
||||
((Instance Horizontal-Panel%) ((Instance Button%) (Instance Event%) -> Void) ((Instance Button%) (Instance Event%) -> Void) -> (values Any Any))])
|
||||
|
||||
(require/typed/provide "prefs-contract.ss"
|
||||
(require/typed/provide "prefs-contract.rkt"
|
||||
[preferences:get-drracket:large-letters-font (-> (U #f (Pair String Integer)))])
|
||||
|
||||
(require (only-in "prefs-contract.ss" preferences:get))
|
||||
(require (only-in "prefs-contract.rkt" preferences:get))
|
||||
(provide preferences:get)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user