From a6fb6759183ae5aa15b2191fdcf8e2f5f71a1709 Mon Sep 17 00:00:00 2001 From: ben <types@ccs.neu.edu> Date: Sun, 13 Dec 2015 03:38:35 -0500 Subject: [PATCH] ** reorganize test directory --- test/README.md | 9 ++++----- test/{format/fail.rkt => format-fail.rkt} | 0 test/{format/pass.rkt => format-pass.rkt} | 0 test/{regexp/fail.rkt => regexp-fail.rkt} | 0 test/{regexp/pass.rkt => regexp-pass.rkt} | 0 5 files changed, 4 insertions(+), 5 deletions(-) rename test/{format/fail.rkt => format-fail.rkt} (100%) rename test/{format/pass.rkt => format-pass.rkt} (100%) rename test/{regexp/fail.rkt => regexp-fail.rkt} (100%) rename test/{regexp/pass.rkt => regexp-pass.rkt} (100%) diff --git a/test/README.md b/test/README.md index f485530..1305839 100644 --- a/test/README.md +++ b/test/README.md @@ -3,9 +3,8 @@ test Root directory for `trivial` package test cases. -Each folder here contains 2 important files: -- `pass.rkt` : driver for tests exercising intended behavior -- `fail.rkt` : driver for tests that should raise type errors +There should be 2 files for each module `M` in the parent directory. +- `M-pass.rkt` : tests exercising intended behavior +- `M-fail.rkt` : tests that should raise type errors -Run either of these to see a few pass/fail tests. -The scripts `all-X.rkt` in this folder run passing/failing tests. +Run tests for any file with `raco test FILE.rkt`. diff --git a/test/format/fail.rkt b/test/format-fail.rkt similarity index 100% rename from test/format/fail.rkt rename to test/format-fail.rkt diff --git a/test/format/pass.rkt b/test/format-pass.rkt similarity index 100% rename from test/format/pass.rkt rename to test/format-pass.rkt diff --git a/test/regexp/fail.rkt b/test/regexp-fail.rkt similarity index 100% rename from test/regexp/fail.rkt rename to test/regexp-fail.rkt diff --git a/test/regexp/pass.rkt b/test/regexp-pass.rkt similarity index 100% rename from test/regexp/pass.rkt rename to test/regexp-pass.rkt