diff options
| author | Albert Krewinkel <[email protected]> | 2022-10-03 19:42:39 +0200 |
|---|---|---|
| committer | Albert Krewinkel <[email protected]> | 2022-10-03 19:46:57 +0200 |
| commit | 8986c03f20edfb8c6b25fc8c9f1a513f47bd3717 (patch) | |
| tree | 4fb7af5bee1ac86107510eebd092f4ae0e622028 /pandoc-lua-engine/test/bytestring.lua | |
| parent | f31524886504a38b621774edaf29b9d4ba3bc53a (diff) | |
Add test for custom bytestring writers
Diffstat (limited to 'pandoc-lua-engine/test/bytestring.lua')
| -rw-r--r-- | pandoc-lua-engine/test/bytestring.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pandoc-lua-engine/test/bytestring.lua b/pandoc-lua-engine/test/bytestring.lua new file mode 100644 index 000000000..f872e28d4 --- /dev/null +++ b/pandoc-lua-engine/test/bytestring.lua @@ -0,0 +1,7 @@ +function ByteStringWriter (doc, opts) + local buffer = {} + for i=0, 255 do + table.insert(buffer, string.char(i)) + end + return table.concat(buffer, '') +end |
