v2 / vlib / v / slow_tests / repl / README.md
25 lines · 20 sloc · 619 bytes · 6a32c810703f4ec0c39fe18298ebe6c40acac8f1
Raw

V REPL Tests Script

How to write a new test

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