mirror of
https://github.com/TangentFoxy/etlua.git
synced 2025-07-27 18:42:17 +00:00
test for buffer re-use
This commit is contained in:
@@ -106,6 +106,12 @@ This is my message to <%= [=[oh yeah %>"]=] %>]]
|
||||
there is nothing left
|
||||
]]
|
||||
|
||||
it "should use existing buffer", ->
|
||||
fn = compile "hello<%= 'yeah' %>"
|
||||
buff = {"first"}
|
||||
out = fn {}, buff
|
||||
assert.same "firsthelloyeah", out
|
||||
|
||||
describe "Parser.in_string", ->
|
||||
cases = {
|
||||
{ "hello world", false }
|
||||
|
Reference in New Issue
Block a user