about summary refs log tree commit diff
path: root/tests/filters/capitalize-buffer.lua
diff options
context:
space:
mode:
authorLukas Fleischer <cgit@cryptocrack.de>2014-01-15 23:11:19 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2014-01-16 00:53:18 +0100
commit3741254a6989b2837cd8d20480f152f0096bcb9a (patch)
tree5997134d4aaff3ccade061c8cce6de85cbf3ed88 /tests/filters/capitalize-buffer.lua
parentparsing.c: Remove leading space from committer (diff)
downloadcgit-pink-3741254a6989b2837cd8d20480f152f0096bcb9a.tar.gz
cgit-pink-3741254a6989b2837cd8d20480f152f0096bcb9a.zip
t0111: Additions and fixes
* Rename the capitalize-* filters to dump.* since they also dump the
  arguments.

* Add full argument validation to the email filters.

Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Diffstat (limited to 'tests/filters/capitalize-buffer.lua')
-rw-r--r--tests/filters/capitalize-buffer.lua17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/filters/capitalize-buffer.lua b/tests/filters/capitalize-buffer.lua
deleted file mode 100644
index 1f15c93..0000000
--- a/tests/filters/capitalize-buffer.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-function filter_open(...)
-	buffer = ""
-	for i = 1, select("#", ...) do
-		buffer = buffer .. select(i, ...) .. " "
-	end
-end
-
-function filter_close()
-	html(buffer)
-	return 0
-end
-
-function filter_write(str)
-	buffer = buffer .. string.upper(str)
-end
-
-