0 branches
Tree
Top files
Clone with HTTPS:
conditional_blocks
checker,transformer: add always true/false branch detection for the `if` and `match` constructs (#25674)
last Nov 9
209 bytes
runner
v: refactor $var to ${var} across entire repository, make vfmt always output the newer form `${expr}` (#26494)
last Feb 1
3.89 KB
chained_fields
tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892)
3 years ago
1.6 KB
tmpl
tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892)
3 years ago
6 bytes
immutable_len_fields
tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892)
3 years ago
607 bytes
.gitattributes
tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892)
3 years ago
25 bytes
array_filter.repl
tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892)
3 years ago
63 bytes
array_method.repl
tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892)
3 years ago
96 bytes
.gitignore
tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892)
3 years ago
42 bytes
README.md
tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892)
3 years ago
619 bytes
array_init.repl
tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892)
3 years ago
36 bytes
bad_in_type.repl.skip
tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892)
3 years ago
98 bytes
const.repl
vrepl: fix const declaration and single line struct/enum/interface (#21887)
1 year ago
64 bytes
default_printing.repl
tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892)
3 years ago
29 bytes
empty_struct.repl.skip
tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892)
3 years ago
59 bytes
error.repl
repl: fix an issue with `print` and println after the execution of `for` or `if` (fix #20524) (#20525)
2 years ago
118 bytes
error_nosave.repl.skip
tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892)
3 years ago
115 bytes
fn_calls.repl
strconv: produce a maximum of 8 digits after the `.` for f32.str() (fix #25141) (#25144)
last Aug 20
164 bytes
if_and_for_with_print_inside_them.repl
vrepl: shrink .repl inputs, so repl_test.v runs faster
1 year ago
181 bytes
import.repl
time: update unix time acces, fix issues related to deviating unix times (#21293)
2 years ago
57 bytes
import_vmodules_submodule_test.v
builder: fix import vsl.la failing (fixes #17389)
last Apr 21
3.05 KB
newlines.repl
tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892)
3 years ago
15 bytes
nomain.repl
tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892)
3 years ago
33 bytes
open_close_string_check.repl
tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892)
3 years ago
25 bytes
option_call.repl
tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892)
3 years ago
50 bytes
println.repl
tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892)
3 years ago
198 bytes
error_multi_line_fn_decl.repl
vrepl: shrink .repl inputs, so repl_test.v runs faster
1 year ago
227 bytes
line_comment.repl
vrepl: fix handling of `//` inside string literals (fix #25603) (#26240)
last Jan 2
448 bytes
naked_strings.repl
tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892)
3 years ago
32 bytes
newlines_should_not_exit_the_repl.repl
tools: fix exiting the v repl, after just Enter (regression happened in bf00ac6)
2 years ago
33 bytes
nothing.repl
tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892)
3 years ago
13 bytes
option.repl.skip
tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892)
3 years ago
112 bytes
postfix_operators.repl
tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892)
3 years ago
46 bytes
repl_time_state_test.v
os: fix read_file crash on Windows device files (TCC/GCC)
last May 15
2.83 KB
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
- Create a new file named
Notes
Keep in mind, that the way V repl works for now, every non empty line would cause a new recompilation of the entire repl content that was collected so far.
Longer REPL files would cause measurably longer recompilation/testing times.
Also, longer repl files would be slower to debug when they fail, It is better to have several smaller files vs one huge REPL file.
Example :
a := 1
println(a)
===output===
1