Commit ca4cb33e authored by Hanspeter Portner's avatar Hanspeter Portner

manual: work on atom primitives.

parent 07d915dc
Pipeline #4250250 passed with stages
in 6 minutes and 30 seconds
......@@ -356,7 +356,7 @@ _latom_literal_unpack(lua_State *L)
latom->atom->size - 1 - sizeof(LV2_Atom_Literal_Body));
lua_pushinteger(L, latom->body.lit->datatype);
lua_pushinteger(L, latom->body.lit->lang);
return 1;
return 3;
}
const latom_driver_t latom_literal_driver = {
......
......@@ -259,7 +259,8 @@ main(int argc, char **argv)
return -1;
}
moony_deinit(&handle.moony);
//FIXME if not, moony_manual.lua failes, strange indeed
//moony_deinit(&handle.moony);
return 0;
}
......@@ -201,7 +201,10 @@ do
assert(atom.body == str)
assert(atom.datatype == datatype)
assert(atom.lang == lang)
assert(str, datatype, lang == atom:unpack())
local str2, datatype2, lang2 = atom:unpack()
assert(str2 == str)
assert(datatype2 == datatype)
assert(lang2 == lang)
end
test(producer, consumer)
......
This diff is collapsed.
......@@ -2,7 +2,7 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" omit-xml-declaration="yes"/>
<xsl:template match="/">
local snippets = {
local _snippets = {
<xsl:for-each select="html/body/div/div/div/pre/code">
{
'<xsl:value-of select="current()/@id"/>',
......@@ -13,7 +13,7 @@ local snippets = {
</xsl:for-each>
}
for i, v in ipairs(snippets) do
for _, _v in ipairs(_snippets) do
run = nil
once = nil
stash = nil
......@@ -21,36 +21,36 @@ for i, v in ipairs(snippets) do
save = nil
restore = nil
local f = load(v[2])
assert(f)
local _f = load(_v[2])
assert(_f)
print('[test] ' .. v[1])
print('[test] ' .. _v[1])
f()
_f()
local io = Stash()
local _io = Stash()
if stash then
stash(io)
stash(_io)
end
io:read()
_io:read()
if apply then
apply(io)
apply(_io)
end
io:write()
_io:write()
if save then
save(io)
save(_io)
end
io:read()
_io:read()
if restore then
restore(io)
end
restore(_io)
end
if once then
--FIXME
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment