vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit ff687831350e3f22faec26ec24e94ee08d892358
parent e5e36a189dc33ec1854246b142761a0073a98f51
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Wed, 15 Mar 2017 21:18:26 +0100

test/lua: update README

Diffstat:
Mlua/README.md | 17+++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/lua/README.md b/lua/README.md @@ -1,13 +1,10 @@ -Tests for vis specific lua api ------------------------------- +Unit Test for Vis' Lua API +-------------------------- -Tests are formed from a `<test>.in`, `<test>.ref` and `<test>.out` triplet. -The `<test>.in` file is opened by vis, some operatations are performed and the -modified file is written to `<test>.out`. The new `<test>.out` is compared to -`<test>.ref` and the test passes if they are identical. +The tests use the [busted unit testing framework](https://olivinelabs.com/busted/). -The shell script `test.sh` looks for a file with extension `.in`, eg `test.in`, -and opens it in vis. The corresponding lua file, `test.lua`, is executed and is -expected to create a `test.out` file. +Each `*.lua` file is sourced from a new `vis` instance which loads the +correspending `*.in` file. -Type `make` to run all tests. +Use the `test.sh` shell script to run an individual test or type `make` +to run all tests.