Skip to content

Commit 8b16ccf

Browse files
authored
Update README.md
1 parent e901e84 commit 8b16ccf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,9 @@ The virtual machines in this section are SECD-style and follow a description in
6565

6666
For testing your Source programs, you need `node` and `yarn`.
6767

68-
Write your test cases in the folder `__tests__` in each `src` subfolder. The name of the file specifies the targeted Source.
69-
For example, `src/steppers/source-0.js` is the Source and a test case might be `src/steppers/__tests__/source-0.js.test1`.
68+
Write your test cases in a folder `__tests__` in each `src` subfolder. The name of the file specifies the targeted Source of your test case. For example, if `src/steppers/source-0.js` is the Source, a test case might be `src/steppers/__tests__/source-0.js.test1`.
7069

71-
Each test case is appended to your Source, and then run with `js-slang` (using Source §4). The last line of the test case is a comment that must contain the expected result. For example, a stepper test case may be:
70+
Each test case is appended to your Source, and then run with `js-slang` (using Source §4). The last line of the test case is a `//` comment that must contain the expected result. For example, a stepper test case may be:
7271
```
7372
parse_and_evaluate("! (1 === 1 && 2 > 3);");
7473
// true

0 commit comments

Comments
 (0)