You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok, so it seems you can only use procedures and not functions and you have to create local variables in the steps packages as context. This really should be documented.
I think this is indeed one of the drawbacks of this whole approach, the use of global variables for the tests. It would be nicer to have some notion of context somewhere, which users could extend and that would be passed to all the "@given", "@then" and "@when" procedures
There are some issues I don't know how to work out.
gnatbdd copies the in out specification to the generated source. See below, I would put in String normally.
How do you handle return values? 'a' below?
-- @given ^a ← tuple((\d+.\d+), (\d+.\d+), (\d+.\d+), (\d+.\d+))$
procedure Given_A_Tuple (A : out Tuple; X, Y, Z, W : String);
The text was updated successfully, but these errors were encountered: