Skip to content

Commit f6cf04b

Browse files
authored
Fix #69: luatable test structure (PR #88)
1 parent e0503f5 commit f6cf04b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

spec/acceptance_test_repeated_tags1_spec.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ local handler = require("xmlhandler.tree")
44
local luaTable = {
55
tag = {
66
array = {
7-
item = { _attr = { myattr = "something1" } },
8-
item = { _attr = { myattr = "something2" } },
7+
item = {
8+
{ _attr = { myattr = "something1" } },
9+
{ _attr = { myattr = "something2" } }
10+
}
911
}
1012
}
1113
}
@@ -45,7 +47,7 @@ describe("Simple Repeated Tags with same structure Acceptance Tests ::", functio
4547
print("\nParsed array XML:\n", parsedXml, "\n")
4648

4749
assert.is.truthy(string.find(parsedXml, '<item myattr="something1"'), "there should have an item with a 'something1' myattr value")
48-
assert.is.truthy(string.find(parsedXml, '<item myattr="something1"'), "there should have an item with a 'something2' myattr value")
50+
assert.is.truthy(string.find(parsedXml, '<item myattr="something2"'), "there should have an item with a 'something2' myattr value")
4951
assert.is.falsy(string.find(parsedXml, "non-existent"))
5052
end)
5153
end)

0 commit comments

Comments
 (0)