Skip to content

Commit

Permalink
test ancient on empty databases
Browse files Browse the repository at this point in the history
  • Loading branch information
EmileTrotignon committed Jan 30, 2024
1 parent cba8ade commit 1b39bd2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/cram/simple.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Here cat is used to remove weird permissions on executable built by dune
$ cat ../../../jsoo/main.bc.js > sherlodoc.js
$ du -sh sherlodoc.js
92K sherlodoc.js
100K sherlodoc.js
$ mkdir html
$ cp sherlodoc.js html
$ cp db.js html
Expand Down
3 changes: 3 additions & 0 deletions test/cram_ancient/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(cram
(enabled_if %{lib-available:ancient} )
(deps %{bin:odoc} %{bin:sherlodoc}))
7 changes: 7 additions & 0 deletions test/cram_ancient/empty.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
$ export SHERLODOC_DB=db.bin
$ export SHERLODOC_FORMAT=ancient
$ sherlodoc index
$ sherlodoc search "query"
[No results]
$ sherlodoc search ": type_query"
[No results]

0 comments on commit 1b39bd2

Please sign in to comment.