test-run-tests.t
53 lines
| 606 B
| text/troff
|
Tads3Lexer
/ tests / test-run-tests.t
Brodie Rao
|
r12375 | Simple commands: | ||
$ echo foo | ||||
foo | ||||
Mads Kiilerich
|
r12940 | $ printf 'oh no' | ||
oh no (no-eol) | ||||
Matt Mackall
|
r12377 | $ printf 'bar\nbaz\n' | cat | ||
Brodie Rao
|
r12375 | bar | ||
baz | ||||
Multi-line command: | ||||
$ foo() { | ||||
> echo bar | ||||
> } | ||||
$ foo | ||||
bar | ||||
Idan Kamara
|
r15249 | Doctest commands: | ||
>>> print 'foo' | ||||
foo | ||||
$ echo interleaved | ||||
interleaved | ||||
>>> for c in 'xyz': | ||||
... print c | ||||
x | ||||
y | ||||
z | ||||
<BLANKLINE> | ||||
Brodie Rao
|
r12375 | Regular expressions: | ||
$ echo foobarbaz | ||||
foobar.* (re) | ||||
$ echo barbazquux | ||||
.*quux.* (re) | ||||
Brodie Rao
|
r12376 | Globs: | ||
Matt Mackall
|
r12377 | $ printf '* \\foobarbaz {10}\n' | ||
Brodie Rao
|
r12376 | \* \\fo?bar* {10} (glob) | ||
Brodie Rao
|
r12375 | Literal match ending in " (re)": | ||
$ echo 'foo (re)' | ||||
foo (re) | ||||
Exit code: | ||||
Mads Kiilerich
|
r12406 | $ (exit 1) | ||
Brodie Rao
|
r12375 | [1] | ||