Improved README
This commit is contained in:
parent
4374bef788
commit
8c638c2537
29
README.md
29
README.md
|
@ -1,20 +1,35 @@
|
||||||
|
[](https://travis-ci.org/jsmaniac/repltest)
|
||||||
|
[](https://coveralls.io/github/jsmaniac/repltest)
|
||||||
|
[](http://jsmaniac.github.io/travis-stats/#jsmaniac/repltest)
|
||||||
|
|
||||||
REPLtest
|
REPLtest
|
||||||
========
|
========
|
||||||
|
|
||||||
This package provides the `#lang repltest` meta-language, which can be used to turn the transcript of an interactive racket session into a series of tests.
|
This package provides the `#lang repltest` meta-language, which can be
|
||||||
|
used to turn the transcript of an interactive racket session into a
|
||||||
|
series of tests.
|
||||||
|
|
||||||
Usage:
|
Installation
|
||||||
|
------------
|
||||||
|
|
||||||
|
Install thiw package with:
|
||||||
|
|
||||||
```
|
```
|
||||||
raco pkg install repltest
|
raco pkg install repltest
|
||||||
```
|
```
|
||||||
|
|
||||||
Then write a file using the repltest meta-language, containing definitions at the top and interactions after the first prompt (by default the prompt is `"> "`, I will add customization options later).
|
Usage
|
||||||
|
-----
|
||||||
|
|
||||||
|
Then write a file using the repltest meta-language, containing
|
||||||
|
definitions at the top and interactions after the first prompt (by
|
||||||
|
default the prompt is `"> "`, I will add customization options later).
|
||||||
|
|
||||||
```
|
```
|
||||||
#lang debug repltest typed/racket
|
#lang debug repltest typed/racket
|
||||||
;; There is a problem if there is a comment before a prompt, as comments aren't
|
;; There is a problem if there is a comment before a prompt, as comments
|
||||||
;; gobbled-up by the preceeding read.
|
;; are not gobbled-up by the preceeding read. This will be fixed in a
|
||||||
|
;; later version.
|
||||||
(define x 0)
|
(define x 0)
|
||||||
(define y 1)
|
(define y 1)
|
||||||
'displayed
|
'displayed
|
||||||
|
@ -35,3 +50,7 @@ Then write a file using the repltest meta-language, containing definitions at th
|
||||||
- : Integer [more precisely: Positive-Byte]
|
- : Integer [more precisely: Positive-Byte]
|
||||||
2
|
2
|
||||||
```
|
```
|
||||||
|
|
||||||
|
When the `test` submodule of this file is executed (e.g. with `raco
|
||||||
|
test file.rkt`), `repltest` runs the expression after each `> `
|
||||||
|
prompt, and check they give the expected result.
|
Loading…
Reference in New Issue
Block a user