We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6998d7b commit 577dc6dCopy full SHA for 577dc6d
test/test-libxml2.lua
@@ -51,7 +51,11 @@ function TestLibxml2XML.test_parse_invalid()
51
local document = libxml2.xmlCtxtReadMemory(context, xml)
52
luaunit.assertEquals(ffi.typeof(document),
53
ffi.typeof("xmlDocPtr"))
54
- if tonumber(libxml2.VERSION) >= 20910 then
+ -- This condition may be loose
55
+ if tonumber(libxml2.VERSION) >= 20913 then
56
+ luaunit.assertEquals(ffi.string(context.lastError.message),
57
+ "Premature end of data in tag root line 1\n")
58
+ elseif tonumber(libxml2.VERSION) >= 20910 then
59
luaunit.assertEquals(ffi.string(context.lastError.message),
60
"EndTag: '</' not found\n")
61
else
0 commit comments