1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

pref: support v -e "println(2+5)" (#17605)

This commit is contained in:
Delyan Angelov
2023-03-12 01:42:36 +02:00
committed by GitHub
parent 95a9f0e29b
commit b2a71ecab2
2 changed files with 53 additions and 28 deletions

View File

@ -95,6 +95,12 @@ fn get_all_commands() []Command {
okmsg: 'V can compile hello world with both -skip-unused and -profile .'
rmfile: 'examples/hello_world'
}
res << Command{
line: '${vexe} -e "print(84/2)"'
okmsg: 'V can run code given after `-e`'
runcmd: .execute
expect: '42'
}
$if linux || macos {
res << Command{
line: '${vexe} run examples/hello_world.v'