Skip to content
This repository has been archived by the owner on Jun 18, 2020. It is now read-only.

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fen committed May 2, 2015
1 parent d35dd22 commit 71d59ec
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# specpp

This is a small library to do BDD in C++ in a DSL:ish syntax.

**this is not maintained**

## Example

```C++
struct char_helper
{
char_helper():
str( "ABC 123 A93!" )
, credit( "0000 1111 2222 3333" )
, credit_error( "0000 1111 2222 QQQQ" )
{
}

char* str;
std::string credit;
std::string credit_error;
};

context("The string group (equal)", char_helper)
{
specify("should have support for equality")
{
actual( str ).string.should.equal( "ABC 123 A93!" );
}
specify("should have support for not equal")
{
actual( str ).string.should.not.equal( "X" );
}
specify("should have support for equality operator")
{
actual( str ).string.should == "ABC 123 A93!";
}
specify("should have support for not equal operator")
{
actual( str ).string.should != "X" ;
}
}
```

0 comments on commit 71d59ec

Please sign in to comment.