briot / gnatbdd Goto Github PK
View Code? Open in Web Editor NEWBehavior Driven Development in Ada
Behavior Driven Development in Ada
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);
Hi,
To which section would you add this project?
Thx!
Given the following scenario:
Scenario: Constructing the PPM header
Given c ← canvas(5, 3)
When ppm ← canvas_to_ppm(c)
Then lines 1-3 of ppm are
"""
P3
5 3
255
"""
With a regexp of:
-- @then ^lines (\d+)-(\d+) of ppm are$
procedure Test (Start_Line, End_Line : Positive; Str : String);
Fails to generate with the following error:
Too many parameters (or not enough parenthesis groups) for step
^lines (\d+)-(\d+) of ppm are$
Remove the String parameter and it generates, but incorrectly. The multiline string is parsed by gnatbdd, but not passed as an extra parameter at the end of the function.
Please add these to complete the project, gnatbdd-codegen.adb: 51
Cst_Comment_Re : constant Pattern_Matcher :=
Compile ("--\s*@(given|then|when|and|but)\s+");
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.