Debian Codegraph @

test/blackbox-tests/test-cases/stanzas/mdx-stanza/locks.t

raw
1 Version 0.2 of the mdx stanza does not support (locks):
2
3 $ cat > dune-project << EOF
4 > (lang dune 3.2)
5 > (using mdx 0.2)
6 > EOF
7
8 $ cat > dune << EOF
9 > (mdx
10 > (locks l))
11 > EOF
12
13 $ dune build
14 File "dune", line 2, characters 1-10:
15 2 | (locks l))
16 ^^^^^^^^^
17 Error: 'locks' is only available since version 0.3 of mdx extension to verify
18 code blocks in .md files. Please update your dune-project file to have (using
19 mdx 0.3).
20 [1]
21
22 In version 0.3, it is accepted:
23
24 $ cat > dune-project << EOF
25 > (lang dune 3.2)
26 > (using mdx 0.3)
27 > EOF
28
29 $ dune build