Search
Tag Archive

Spec (C++) > v0.2.x

The spec files (spec-*.zip) are implementations of the advocated specification language / constructs by proponents of Behaviour Driven Development (BDD). More information about BDD can be accessed at http://behaviour-driven.org/.

The main idea behind `spec' is to define specifications with a more readable and more natural language as opposed to the traditional assert_* terminology heavily utilitzed in Test Driven Development (TDD).

Example:

using namespace boost::spec ;

int my_value = 10;
value(my_value).should.equal(10);
value(my_value).should.not_equal(9);
value(my_value).should.be_less_than(11);
value(my_value).should.be_more_than(9);
value(my_value).should.be_between(9).and_(11);

Please send questions and comments to Dean Michael Berris <me@deanberris.com> .

Files