Add test for balanced match on empty string.

This commit is contained in:
James Roseborough
2015-03-14 20:09:09 +00:00
parent baccc39c74
commit 4c3bb1d709

View File

@@ -591,5 +591,8 @@ public class FragmentsTest extends TestSuite {
runFragment(LuaValue.varargsOf(LuaValue.valueOf("boolean"), LuaValue.TRUE), runFragment(LuaValue.varargsOf(LuaValue.valueOf("boolean"), LuaValue.TRUE),
"a,b = pcall(error, true); return type(b), b\n"); "a,b = pcall(error, true); return type(b), b\n");
} }
public void testBalancedMatchOnEmptyString() {
runFragment(LuaValue.NIL, "return (\"\"):match(\"%b''\")\n");
}
} }
} }