mirror of
https://github.com/TangentFoxy/etlua.git
synced 2025-07-28 11:02: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
|
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", ->
|
describe "Parser.in_string", ->
|
||||||
cases = {
|
cases = {
|
||||||
{ "hello world", false }
|
{ "hello world", false }
|
||||||
|
Reference in New Issue
Block a user