@@ -15,23 +15,46 @@ Run `make .merlin` to create the `.merlin` file.
15
15
16
16
## New Vernacular Commands
17
17
18
- - ` CWTest string? qualid Assumes qualid*`
18
+ - ` CWAssert string? qualid Assumes qualid*`
19
19
20
20
This command fails if the tested ` qualid ` depends on an axiom which is not listed after ` Assumes ` :
21
21
22
22
``` coq
23
- CWTest "Testing lemma" lemma Assumes proof_irrelevance functional_extensionality.
23
+ CWAssert "Testing lemma" lemma Assumes proof_irrelevance functional_extensionality.
24
24
```
25
- The string argument after ` CWTest ` is an optional message.
25
+ The string argument after ` CWAssert ` is an optional message.
26
+
27
+ - ` CWAssert string? qualid : term `
28
+
29
+ Checks if the type of ` qualid ` is convertible to the type given by ` term ` .
30
+
31
+ ``` coq
32
+ CWAssert "Testing type" lemma : (forall x, x > 0).
33
+ ```
34
+ The string argument after ` CWAssert ` is an optional message.
35
+
36
+ Note that the ` term ` should be in parentheses.
26
37
27
38
- ` CWGroup string `
28
39
29
- Begins a group of tests.
40
+ Begins a group of tests (outputs ` <DESCRIBE::> ` ).
41
+
42
+ Groups can be nested. But all tests should be performed after ` CWTest ` in nested groups.
30
43
31
44
- ` CWEndGroup `
32
45
33
46
Ends a group of tests.
34
47
48
+ - ` CWTest string `
49
+
50
+ Begins a test case (outputs ` <IT::> ` ).
51
+
52
+ Test cases cannot be nested.
53
+
54
+ - ` CWEndTest ` .
55
+
56
+ Ends a test case. This command is optional before ` CWTest ` and ` CWEndGroup ` .
57
+
35
58
- ` CWFile string? Size < int `
36
59
37
60
Tests if the size of a file (the first string argument) is less than the second argument.
@@ -48,8 +71,9 @@ Run `make .merlin` to create the `.merlin` file.
48
71
49
72
## Examples
50
73
51
- See [ theories/Demo.v] ( theories/Demo.v ) and [ theories/Demo2.v] ( theories/Demo2.v )
52
- for more examples.
74
+ See [ cw_example/SolutionTest.v] ( cw_example/SolutionTest.v ) .
75
+
76
+ More examples are in [ theories/Demo.v] ( theories/Demo.v ) and [ theories/Demo2.v] ( theories/Demo2.v ) .
53
77
54
78
Compiling demo files:
55
79
```
0 commit comments