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

repl: functions and conditional blocks support

This commit is contained in:
Henrixounez
2019-08-18 21:50:38 +02:00
committed by Alexander Medvednikov
parent ecc8059a9e
commit e1d2c83ff6
5 changed files with 178 additions and 64 deletions

View File

@ -14,7 +14,7 @@ fn test_repl() {
assert false
break
}
result := r.output.replace('>>> ', '').replace('>>>', '').all_after('Use Ctrl-C or `exit` to exit\n')
result := r.output.replace('>>> ', '').replace('>>>', '').replace('... ', '').all_after('Use Ctrl-C or `exit` to exit\n')
assert result == output
if result != output {
println(file)