v/compiler/tests/repl
Delyan Angelov 35f927e64e repl: add some timing statistics when running REPL test files 2019-09-15 18:08:16 +03:00
..
runner
.gitattributes
.gitignore
README.md
arr_decl.repl
chained_fields.repl
conditional_blocks.repl
default_printing.repl
error.repl
error_nosave.repl
function.repl
interpolation.repl
multiple_decl.repl
multiple_println.repl
naked_strings.repl
newlines.repl
nothing.repl
println.repl
repl_test.v
run.v
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