@@ -37,7 +37,7 @@ <h2>Abstract</h2>
37
37
This defines an API for writing < dfn > test suites</ dfn > , to make it easy
38
38
to portably test Scheme APIs, libraries, applications, and implementations.
39
39
A test suite is a collection of < dfn > test cases</ dfn > that execute
40
- in the context of a < dfn > test-runner</ dfn > . This specifications
40
+ in the context of a < dfn > test-runner</ dfn > . This specification
41
41
also supports writing new test-runners, to allow customization
42
42
of reporting and processing the result of running test suites.</ p >
43
43
@@ -273,7 +273,7 @@ <h4>Test groups and paths</h4>
273
273
< p > A < code > test-begin</ code > enters a new test group.
274
274
The < var > suite-name</ var > becomes the current test group name,
275
275
and is added to the end of the test group path.
276
- Portable test suites should use a sting literal for < var > suite-name</ var > ;
276
+ Portable test suites should use a string literal for < var > suite-name</ var > ;
277
277
the effect of expressions or other kinds of literals is unspecified.</ p >
278
278
< p >
279
279
< b > Rationale:</ b > In some ways using symbols would be preferable.
@@ -370,7 +370,7 @@ <h3>Test suites</h3>
370
370
< h3 > Conditonal test-suites and other advanced features</ h3 >
371
371
< p >
372
372
The following describes features for controlling which tests to execute,
373
- or specifing that some tests are < em > expected</ em > to fail.</ p >
373
+ or specifying that some tests are < em > expected</ em > to fail.</ p >
374
374
375
375
< h4 > Test specifiers</ h4 >
376
376
< p > Sometimes we want to only run certain tests, or we know that
@@ -390,7 +390,7 @@ <h4>Test specifiers</h4>
390
390
< p >
391
391
< code > (< b > test-match-name</ b > < var > name</ var > )</ code > < br />
392
392
The resulting specifier matches if the current test name (as
393
- returned by < code > test-runner-test-name</ code > ) is < code > equals ?</ code > to
393
+ returned by < code > test-runner-test-name</ code > ) is < code > equal ?</ code > to
394
394
< var > name</ var > .</ p >
395
395
< p >
396
396
< code > (< b > test-match-nth</ b > < var > n</ var > [< var > count</ var > ])</ code > < br />
@@ -478,7 +478,7 @@ <h3>Test-runner</h3>
478
478
A < dfn > test-runner</ dfn > is an object that runs a test-suite,
479
479
and manages the state. The test group path, and the sets skip and
480
480
expected-fail specifiers are part of the test-runner.
481
- A test-runner will also typically accumulate statistics about executed tests,
481
+ A test-runner will also typically accumulate statistics about executed tests.
482
482
</ p >
483
483
< p >
484
484
< code > (< b > test-runner?</ b > < var > value</ var > )</ code > < br />
@@ -495,7 +495,7 @@ <h3>Test-runner</h3>
495
495
that uses a fluid or thread-local variable, or a plain global variable.</ p >
496
496
< p >
497
497
< code > (< b > test-runner-get</ b > )</ code > < br />
498
- Same as < code > (test-runner-current)</ code > , buth throws an exception
498
+ Same as < code > (test-runner-current)</ code > , but throws an exception
499
499
if there is no current test-runner.</ p >
500
500
< p >
501
501
< code > (< b > test-runner-simple</ b > )</ code > < br />
@@ -536,7 +536,7 @@ <h4>Running specific tests with a specified runner</h4>
536
536
< code > test-apply</ code > < em > and</ em > does not match any
537
537
active < code > test-skip</ code > specifiers.</ p >
538
538
< p >
539
- < code > (< b > test-with-runner </ b > < var > runner</ var > < var > decl-or-expr</ var > ...)</ code > < br />
539
+ < code > (< b > test-with-runner</ b > < var > runner</ var > < var > decl-or-expr</ var > ...)</ code > < br />
540
540
Executes each < var > decl-or-expr</ var > in order in a context
541
541
where the current test-runner is < var > runner</ var > .</ p >
542
542
@@ -557,11 +557,11 @@ <h4>Result kind</h4>
557
557
</ dl >
558
558
< p >
559
559
< code > (< b > test-result-kind</ b > [< var > runner</ var > ])</ code > < br />
560
- Return one of the above result codes from the most recent tests.
560
+ Returns one of the above result codes from the most recent tests.
561
561
Returns < code > #f</ code > if no tests have been run yet.
562
562
If we've started on a new test, but don't have a result yet,
563
- then the result kind is < code > 'xfail</ code > is the test is expected to fail,
564
- < code > 'skip</ code > is the test is supposed to be skipped,
563
+ then the result kind is < code > 'xfail</ code > if the test is expected to fail,
564
+ < code > 'skip</ code > if the test is supposed to be skipped,
565
565
or < code > #f</ code > otherwise.</ p >
566
566
< p >
567
567
< code > (< b > test-passed?</ b > [< var > runner</ var > ])</ code > < br />
@@ -622,7 +622,7 @@ <h4>Standard result properties</h4>
622
622
< dt > < code > 'source-file</ code > </ dt >
623
623
< dt > < code > 'source-line</ code > </ dt >
624
624
< dd > If known, the location of test statements (such as < code > test-assert</ code > )
625
- in test suite source code.. </ dd >
625
+ in test suite source code.</ dd >
626
626
< dt > < code > 'source-form</ code > </ dt >
627
627
< dd > The source form, if meaningful and known.</ dd >
628
628
< dt > < code > 'expected-value</ code > </ dt >
0 commit comments