v/compiler/tests/repl
Delyan Angelov 41efe545f2 repl_test: remove dependance on echo, use stdin redirection instead. 2019-08-18 23:02:32 +03:00
..
README.md
arr_decl.repl
conditional_blocks.repl repl: functions and conditional blocks support 2019-08-18 22:50:38 +03:00
default_printing.repl
error.repl
error_nosave.repl
function.repl repl: functions and conditional blocks support 2019-08-18 22:50:38 +03:00
interpolation.repl
multiple_decl.repl
multiple_println.repl
newlines.repl
nothing.repl
println.repl
repl_test.v repl_test: remove dependance on echo, use stdin redirection instead. 2019-08-18 23:02:32 +03:00
var_decl.repl

README.md

V REPL Tests Script

How to write a new test

  • Create a new file named *.repl
  • Write the input to be given to REPL
  • Add ===output===
  • Write the output expected

Example :

a := 1
println(a)
===output===
1