Skip to content

Commit

Permalink
zencode given new statement to add name from data
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Oct 12, 2020
1 parent 05c6773 commit 8103e1d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lua/zencode_given.lua
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ end)

Given("am ''", function(name) Iam(name) end)

Given("my name is in ''", function(name)
assert(IN[name], "No name found inside "..name)
Iam(IN[name])
end)

-- variable names:
-- s = schema of variable (or encoding)
-- n = name of variable
Expand Down

0 comments on commit 8103e1d

Please sign in to comment.