aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/file_io/binarybin0 -> 65 bytes
-rw-r--r--test/file_io/cp12521
-rw-r--r--test/file_io/crlf3
-rw-r--r--test/file_io/lf3
-rw-r--r--test/file_io/utf16bin0 -> 90 bytes
-rw-r--r--test/file_io/utf81
-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
-rw-r--r--test/ui/dir1/file10
-rw-r--r--test/ui/dir1/file20
-rw-r--r--test/ui/dir2/file10
-rw-r--r--test/ui/dir2/file20
-rw-r--r--test/ui/empty0
-rw-r--r--test/ui/test.lua3
-rw-r--r--test/ui/uri drop0
21 files changed, 25 insertions, 0 deletions
diff --git a/test/file_io/binary b/test/file_io/binary
new file mode 100644
index 00000000..e4127eff
--- /dev/null
+++ b/test/file_io/binary
Binary files differ
diff --git a/test/file_io/cp1252 b/test/file_io/cp1252
new file mode 100644
index 00000000..9860f939
--- /dev/null
+++ b/test/file_io/cp1252
@@ -0,0 +1 @@
+Copyright © 2007-2020 Mitchell. See LICENSE.
diff --git a/test/file_io/crlf b/test/file_io/crlf
new file mode 100644
index 00000000..c4806e92
--- /dev/null
+++ b/test/file_io/crlf
@@ -0,0 +1,3 @@
+foo
+bar
+baz
diff --git a/test/file_io/lf b/test/file_io/lf
new file mode 100644
index 00000000..86e041da
--- /dev/null
+++ b/test/file_io/lf
@@ -0,0 +1,3 @@
+foo
+bar
+baz
diff --git a/test/file_io/utf16 b/test/file_io/utf16
new file mode 100644
index 00000000..8f935072
--- /dev/null
+++ b/test/file_io/utf16
Binary files differ
diff --git a/test/file_io/utf8 b/test/file_io/utf8
new file mode 100644
index 00000000..4278c33e
--- /dev/null
+++ b/test/file_io/utf8
@@ -0,0 +1 @@
+Copyright © 2007-2020 Mitchell. See LICENSE.
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
diff --git a/test/ui/dir1/file1 b/test/ui/dir1/file1
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/ui/dir1/file1
diff --git a/test/ui/dir1/file2 b/test/ui/dir1/file2
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/ui/dir1/file2
diff --git a/test/ui/dir2/file1 b/test/ui/dir2/file1
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/ui/dir2/file1
diff --git a/test/ui/dir2/file2 b/test/ui/dir2/file2
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/ui/dir2/file2
diff --git a/test/ui/empty b/test/ui/empty
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/ui/empty
diff --git a/test/ui/test.lua b/test/ui/test.lua
new file mode 100644
index 00000000..413f4a92
--- /dev/null
+++ b/test/ui/test.lua
@@ -0,0 +1,3 @@
+if true then
+ print()
+end
diff --git a/test/ui/uri drop b/test/ui/uri drop
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/ui/uri drop