Skip to content

Commit 7272a4c

Browse files
committed
Test: test mismatched html-generate/-impl
1 parent 66c14ce commit 7272a4c

File tree

1 file changed

+10
-1
lines changed
  • test/sources/source.t

1 file changed

+10
-1
lines changed

test/sources/source.t/run.t

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,16 @@ Ids generated in the source code:
384384
id="val-string"
385385
id="val-string2"
386386

387+
Html generation for implementation and mld/interface uses different commands
388+
389+
$ odoc html-generate-impl --indent -o html a.odocl
390+
ERROR: Expected an implementation unit
391+
[1]
392+
$ odoc html-generate --source a.ml --indent -o html impl-a.odocl
393+
odoc: unknown option '--source'.
394+
Usage: odoc html-generate [OPTION]… FILE.odocl
395+
Try 'odoc html-generate --help' or 'odoc --help' for more information.
396+
[2]
387397

388398
Compiling without --source-id makes it impossible to generate the source:
389399

@@ -395,4 +405,3 @@ Compiling without --source-id makes it impossible to generate the source:
395405
$ odoc html-generate-impl --source a.ml --indent -o html impl-a.odocl
396406
ERROR: The implementation unit was not compiled with --source-id.
397407
[1]
398-
$ odoc support-files -o html

0 commit comments

Comments
 (0)