v/cmd/tools/vdoc/testdata/run_examples_bad/main.v

10 lines
252 B
V

// 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 -run-examples good.v`:
// Example: assert 5 * 5 == 77
pub fn abc() {
println('xyz')
}
fn main() {
abc()
}