test for buffer re-use

This commit is contained in:
leaf corcoran
2014-02-01 12:09:46 -08:00
parent fe504d3d25
commit 9fd6d7af0f

View File

@@ -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 }