From 8cd7091dec0f807a3294c4a044980e194d207e7d Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Thu, 19 Dec 2013 07:01:04 -0700 Subject: [PATCH] scribble: fix a test to make it independent of the enclosing package original commit: abc174e16c7be8ef59ed94dbaddb8c18e1c491a1 --- .../tests/scribble/docs/manual.scrbl | 34 +++++++++---------- .../tests/scribble/docs/manual.txt | 34 +++++++++---------- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/pkgs/scribble-pkgs/scribble-test/tests/scribble/docs/manual.scrbl b/pkgs/scribble-pkgs/scribble-test/tests/scribble/docs/manual.scrbl index 5889b1ad..7e6a43be 100644 --- a/pkgs/scribble-pkgs/scribble-test/tests/scribble/docs/manual.scrbl +++ b/pkgs/scribble-pkgs/scribble-test/tests/scribble/docs/manual.scrbl @@ -2,7 +2,7 @@ @(require (for-label racket/base "manual-ex.rkt")) -@defmodule["manual-ex.rkt"] +@defmodule["manual-ex.rkt" #:packages ("manual-test")] @defproc[(f) integer?]{A function.} @@ -68,45 +68,45 @@ @defstruct[#:link-target? #f pt ([x real?] [y real?]) #:mutable]{A mutable structure type with extra name, again.} -@defmodule["manual-ex0.rkt" #:no-declare #:link-target? #f] -@defmodule["manual-ex0.rkt" #:lang #:no-declare #:link-target? #f] -@defmodule["manual-ex0.rkt" #:reader #:no-declare #:link-target? #f] +@defmodule["manual-ex0.rkt" #:no-declare #:link-target? #f #:packages ()] +@defmodule["manual-ex0.rkt" #:lang #:no-declare #:link-target? #f #:packages ()] +@defmodule["manual-ex0.rkt" #:reader #:no-declare #:link-target? #f #:packages ()] @section{Sub2} -@defmodule["manual-ex2.rkt" #:no-declare] +@defmodule["manual-ex2.rkt" #:no-declare #:packages ()] @section{Sub2a} -@defmodule*/no-declare[("manual-ex2a.rkt")] +@defmodule*/no-declare[("manual-ex2a.rkt") #:packages ()] @section{Sub3} -@defmodule["manual-ex3.rkt" #:lang #:no-declare] +@defmodule["manual-ex3.rkt" #:lang #:no-declare #:packages ()] @section{Sub3a} -@defmodulelang*/no-declare[("manual-ex3a.rkt")] +@defmodulelang*/no-declare[("manual-ex3a.rkt") #:packages ()] @section{Sub4-5} -@defmodule[#:multi ("manual-ex4.rkt" "manual-ex5.rkt")] +@defmodule[#:multi ("manual-ex4.rkt" "manual-ex5.rkt") #:packages ()] @section{Sub4a-5a} -@defmodule*[("manual-ex4a.rkt" "manual-ex5a.rkt")] +@defmodule*[("manual-ex4a.rkt" "manual-ex5a.rkt") #:packages ()] @section{Sub6} -@defmodule[#:require-form (racket load) "manual-ex6.rkt"] +@defmodule[#:require-form (racket load) "manual-ex6.rkt" #:packages ()] @section{Sub6a} -@defmodule*[#:require-form (racket load) ("manual-ex6a.rkt")] +@defmodule*[#:require-form (racket load) ("manual-ex6a.rkt") #:packages ()] @section{Sub7} -@defmodule["manual-ex7.rkt" #:use-sources (racket/base)] +@defmodule["manual-ex7.rkt" #:use-sources (racket/base) #:packages ()] @section{Sub7a} -@defmodule*[("manual-ex7a.rkt") #:use-sources (racket/base)] +@defmodule*[("manual-ex7a.rkt") #:use-sources (racket/base) #:packages ()] @section{Sub8} -@defmodule["manual-ex8.rkt" #:reader] +@defmodule["manual-ex8.rkt" #:reader #:packages ()] @section{Sub8a} -@defmodulereader["manual-ex8a.rkt"] +@defmodulereader["manual-ex8a.rkt" #:packages ()] @section{Sub8b} -@defmodulereader*[("manual-ex8b.rkt")] +@defmodulereader*[("manual-ex8b.rkt") #:packages ()] diff --git a/pkgs/scribble-pkgs/scribble-test/tests/scribble/docs/manual.txt b/pkgs/scribble-pkgs/scribble-test/tests/scribble/docs/manual.txt index ebcd46be..4444715a 100644 --- a/pkgs/scribble-pkgs/scribble-test/tests/scribble/docs/manual.txt +++ b/pkgs/scribble-pkgs/scribble-test/tests/scribble/docs/manual.txt @@ -1,4 +1,4 @@ - (require "manual-ex.rkt") package: scribble-test + (require "manual-ex.rkt") package: manual-test (f) -> integer? @@ -166,62 +166,62 @@ A structure type with extra name, again. A mutable structure type with extra name, again. - (require "manual-ex0.rkt") package: scribble-test + (require "manual-ex0.rkt") - #lang "manual-ex0.rkt" package: scribble-test + #lang "manual-ex0.rkt" - #reader "manual-ex0.rkt" package: scribble-test + #reader "manual-ex0.rkt" 1. Sub2 - (require "manual-ex2.rkt") package: scribble-test + (require "manual-ex2.rkt") 2. Sub2a - (require "manual-ex2a.rkt") package: scribble-test + (require "manual-ex2a.rkt") 3. Sub3 - #lang "manual-ex3.rkt" package: scribble-test + #lang "manual-ex3.rkt" 4. Sub3a - #lang "manual-ex3a.rkt" package: scribble-test + #lang "manual-ex3a.rkt" 5. Sub4-5 - (require "manual-ex4.rkt") package: scribble-test + (require "manual-ex4.rkt")  (require "manual-ex5.rkt") 6. Sub4a-5a - (require "manual-ex4a.rkt") package: scribble-test + (require "manual-ex4a.rkt")  (require "manual-ex5a.rkt") 7. Sub6 - (load "manual-ex6.rkt") package: scribble-test + (load "manual-ex6.rkt") 8. Sub6a - (load "manual-ex6a.rkt") package: scribble-test + (load "manual-ex6a.rkt") 9. Sub7 - (require "manual-ex7.rkt") package: scribble-test + (require "manual-ex7.rkt") 10. Sub7a - (require "manual-ex7a.rkt") package: scribble-test + (require "manual-ex7a.rkt") 11. Sub8 - #reader "manual-ex8.rkt" package: scribble-test + #reader "manual-ex8.rkt" 12. Sub8a - #reader "manual-ex8a.rkt" package: scribble-test + #reader "manual-ex8a.rkt" 13. Sub8b - #reader "manual-ex8b.rkt" package: scribble-test + #reader "manual-ex8b.rkt"