mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 09:09:31 +00:00
First test batch and associated fixes
The test runner is also nicer to use.
This commit is contained in:
parent
10084dec23
commit
82ce53be83
154 changed files with 1586 additions and 78 deletions
|
|
@ -23,7 +23,8 @@ local TupleToStruct = ast.abstract.Node {
|
|||
|
||||
_eval = function(self, state)
|
||||
local t = Struct:new()
|
||||
for i, e in ipairs(self.tuple.list) do
|
||||
local tuple = self.tuple:eval(state)
|
||||
for i, e in ipairs(tuple.list) do
|
||||
if Pair:is(e) then
|
||||
t:set(e.name, e.value)
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue