1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/compiler/tests/repl
2019-08-29 12:30:33 +03:00
..
.gitattributes os: fix exec() and get_raw_line(); fix Windows tests and examples 2019-08-26 13:51:48 +03:00
arr_decl.repl repl: enabled back and added automated tests 2019-08-10 07:01:40 +02:00
conditional_blocks.repl repl: functions and conditional blocks support 2019-08-18 22:50:38 +03:00
default_printing.repl tests: v implementation of repl tests 2019-08-18 19:26:55 +03:00
error_nosave.repl compiler: produce errors in C "filepath:line:column:" format 2019-08-22 14:15:11 +03:00
error.repl compiler: produce errors in C "filepath:line:column:" format 2019-08-22 14:15:11 +03:00
function.repl repl: functions and conditional blocks support 2019-08-18 22:50:38 +03:00
interpolation.repl repl: enabled back and added automated tests 2019-08-10 07:01:40 +02:00
multiple_decl.repl repl: enabled back and added automated tests 2019-08-10 07:01:40 +02:00
multiple_println.repl repl: enabled back and added automated tests 2019-08-10 07:01:40 +02:00
naked_strings.repl repl: add a test for naked strings. 2019-08-29 12:30:33 +03:00
newlines.repl repl: enabled back and added automated tests 2019-08-10 07:01:40 +02:00
nothing.repl repl: enabled back and added automated tests 2019-08-10 07:01:40 +02:00
println.repl repl: enabled back and added automated tests 2019-08-10 07:01:40 +02:00
README.md repl: enabled back and added automated tests 2019-08-10 07:01:40 +02:00
repl_test.v os: fix exec() and get_raw_line(); fix Windows tests and examples 2019-08-26 13:51:48 +03:00
var_decl.repl repl: enabled back and added automated tests 2019-08-10 07:01:40 +02:00

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