From e79a2cc397e4a51cbd7c80d87bbd7110cfef9435 Mon Sep 17 00:00:00 2001 From: Greg Hendershott Date: Tue, 9 Sep 2014 10:34:27 -0400 Subject: [PATCH] Replace planet requires with local requires of main.rkt. Otherwise this package's implementation would be using the planet package -- and causing users of this package to download the planet package -- which doesn't seem right. Furthermore, my understanding is that it's preferable within a package to use a relative require -- like `(require "main.rkt")` -- instead of requiring the collection itself -- like either of `(require describe)` or `(require (planet williams/describe/describe))`. So even if this were still a planet package, I think this would be a good change to make. --- describe/describe-test.rkt | 4 ++-- describe/float-test-double.rkt | 2 +- describe/float-test-extended.rkt | 4 ++-- describe/float-test-single.rkt | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/describe/describe-test.rkt b/describe/describe-test.rkt index ab26887..3a01a58 100644 --- a/describe/describe-test.rkt +++ b/describe/describe-test.rkt @@ -16,8 +16,8 @@ ;;; along with this program. If not, see . ;;; -(require racket/mpair) -(require (planet williams/describe/describe)) +(require racket/mpair + "main.rkt") ;;; Booleans (printf "~n--- Booleans ---~n") diff --git a/describe/float-test-double.rkt b/describe/float-test-double.rkt index 6fa3dbb..a110751 100644 --- a/describe/float-test-double.rkt +++ b/describe/float-test-double.rkt @@ -1,6 +1,6 @@ #lang racket -(require (planet williams/describe/describe)) +(require "main.rkt") (printf "--- Using literals (double precision) ---~n") (describe 0.1) diff --git a/describe/float-test-extended.rkt b/describe/float-test-extended.rkt index 4cc3bd3..c1f5f62 100644 --- a/describe/float-test-extended.rkt +++ b/describe/float-test-extended.rkt @@ -1,7 +1,7 @@ #lang racket -(require racket/extflonum) -(require (planet williams/describe/describe)) +(require racket/extflonum + "main.rkt") (printf "--- Using literals (extended precision) ---~n") (describe 0.1t0) diff --git a/describe/float-test-single.rkt b/describe/float-test-single.rkt index 6150e79..eb500a0 100644 --- a/describe/float-test-single.rkt +++ b/describe/float-test-single.rkt @@ -1,6 +1,6 @@ #lang racket -(require (planet williams/describe/describe)) +(require "main.rkt") (printf "--- Using literals (single precision) ---~n") (describe 0.1s0) -- 2.25.1