Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v
/
cmd
/
tools
/
vdoc
/
testdata
/
run_examples_bad
/
main.comments.out
5
lines
·
4
sloc
·
266 bytes
·
89c470bbba6d886ee4d7c620dd81db5dbf8fbd70
Raw
1
module main
2
3
fn abc()
4
abc just prints 'xyz'. The important thing however is the next line, that does an assertion, that should FAIL to be executed with `v doc -unsafe-run-examples main.v`, and should compile with -check-examples:
5
Example: assert 5 * 5 == 77
6