Skip to content

Commit 7a29368

Browse files
authored
test(cram): dir contents of a cram test (ocaml#12004)
Signed-off-by: Rudi Grinberg <[email protected]>
1 parent 08c999b commit 7a29368

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Demonstrate the files and directories listed in a cram test:
2+
3+
$ cat >test.t <<EOF
4+
> $ find . | sort
5+
> EOF
6+
7+
$ dune runtest test.t
8+
File "test.t", line 1, characters 0-0:
9+
Error: Files _build/default/test.t and _build/default/test.t.corrected
10+
differ.
11+
[1]
12+
13+
$ dune promote
14+
Promoting _build/default/test.t.corrected to test.t.
15+
16+
$ cat test.t
17+
$ find . | sort
18+
.

0 commit comments

Comments
 (0)