aboutsummaryrefslogtreecommitdiff
path: root/test/modules/textadept
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-03-03 19:39:02 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2020-03-03 19:39:02 -0500
commitfceb1a37df623649d191c3c1a881e5b0538b1391 (patch)
tree87a34dfc2397dc4afdaa0c8ec189f037300f458e /test/modules/textadept
parent1618f5017abb3c9bacc9ba346bf22a936ef5dd06 (diff)
downloadtextadept-fceb1a37df623649d191c3c1a881e5b0538b1391.tar.gz
textadept-fceb1a37df623649d191c3c1a881e5b0538b1391.zip
Added test suite and API type checking for more helpful error messages.
Diffstat (limited to 'test/modules/textadept')
-rw-r--r--test/modules/textadept/editing/api24
-rw-r--r--test/modules/textadept/run/build.lua2
-rw-r--r--test/modules/textadept/run/compile.lua2
-rw-r--r--test/modules/textadept/run/run.lua2
-rw-r--r--test/modules/textadept/snippets/bar1
-rw-r--r--test/modules/textadept/snippets/baz.txt1
-rw-r--r--test/modules/textadept/snippets/lua.bar1
-rw-r--r--test/modules/textadept/snippets/lua.baz.lua1
8 files changed, 14 insertions, 0 deletions
diff --git a/test/modules/textadept/editing/api2 b/test/modules/textadept/editing/api2
new file mode 100644
index 00000000..1f4e05ff
--- /dev/null
+++ b/test/modules/textadept/editing/api2
@@ -0,0 +1,4 @@
+foo2 Foo2
+bar2 Bar2
+baz2 Baz2
+quux2 Quux2
diff --git a/test/modules/textadept/run/build.lua b/test/modules/textadept/run/build.lua
new file mode 100644
index 00000000..dd288778
--- /dev/null
+++ b/test/modules/textadept/run/build.lua
@@ -0,0 +1,2 @@
+print('read "' .. io.read() .. '"')
+io.read()
diff --git a/test/modules/textadept/run/compile.lua b/test/modules/textadept/run/compile.lua
new file mode 100644
index 00000000..0645da72
--- /dev/null
+++ b/test/modules/textadept/run/compile.lua
@@ -0,0 +1,2 @@
+-- Missing 'end'
+function foo()
diff --git a/test/modules/textadept/run/run.lua b/test/modules/textadept/run/run.lua
new file mode 100644
index 00000000..a61508e9
--- /dev/null
+++ b/test/modules/textadept/run/run.lua
@@ -0,0 +1,2 @@
+print('lua: run.lua:1: warning: foo')
+foo()
diff --git a/test/modules/textadept/snippets/bar b/test/modules/textadept/snippets/bar
new file mode 100644
index 00000000..76018072
--- /dev/null
+++ b/test/modules/textadept/snippets/bar
@@ -0,0 +1 @@
+baz
diff --git a/test/modules/textadept/snippets/baz.txt b/test/modules/textadept/snippets/baz.txt
new file mode 100644
index 00000000..d90bda0f
--- /dev/null
+++ b/test/modules/textadept/snippets/baz.txt
@@ -0,0 +1 @@
+quux
diff --git a/test/modules/textadept/snippets/lua.bar b/test/modules/textadept/snippets/lua.bar
new file mode 100644
index 00000000..d90bda0f
--- /dev/null
+++ b/test/modules/textadept/snippets/lua.bar
@@ -0,0 +1 @@
+quux
diff --git a/test/modules/textadept/snippets/lua.baz.lua b/test/modules/textadept/snippets/lua.baz.lua
new file mode 100644
index 00000000..5716ca59
--- /dev/null
+++ b/test/modules/textadept/snippets/lua.baz.lua
@@ -0,0 +1 @@
+bar