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

fen/specpp

Repository files navigation

specpp

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

this is not maintained

Example

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" ;
    }
}

About

[DEAD] BDD C++ Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages