scribble-enhanced/pkgs/scribble-pkgs/scribble-test/tests/scribble/docs/eval-special.scrbl
Matthew Flatt 6c624d531e move Scribble tests to "scribble-test"
original commit: ba553a917e3e97c74450859dc13481e2187c55ba
2013-07-18 15:20:51 -06:00

15 lines
458 B
Racket

#lang scribble/manual
@(require scribble/eval)
@interaction[
(+ 1 2)
(code:line (+ 1 2) (code:comment "three"))
(eval:alts (+ 1 2) 5)
(eval:result @bold{example})
(eval:alts (+ 1 2) (eval:result @bold{same}))
(eval:alts (+ 1 2) (eval:result @elem{really the same} "Again..."))
(eval:alts (+ 1 2) (eval:result @bold{still the same} "!" "error: too many repeats"))
(eval:alts (+ 1 2) (eval:results (list @racketresult[1] @elem{2} "3") "counting"))
]