Added stub for BDD mappings

This commit is contained in:
Phil Nash
2012-09-03 08:19:12 +01:00
parent 625fc832ee
commit f82d65fb41
3 changed files with 45 additions and 22 deletions

View File

@@ -1,9 +1,42 @@
//
// File.cpp
// CatchSelfTest
//
// Created by Phil Nash on 02/09/2012.
//
//
/*
* Created by Phil on 29/11/2010.
* Copyright 2010 Two Blue Cubes Ltd. All rights reserved.
*
* Distributed under the Boost Software License, Version 1.0. (See accompanying
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#include "File.h"
#ifdef __clang__
#pragma clang diagnostic ignored "-Wpadded"
#endif
#include "catch.hpp"
#define STORY( a, b )
#define SCENARIO( storyName, desc ) TEST_CASE( desc, "" )
#define GIVEN( desc ) SECTION( desc, "" )
#define WHEN( desc ) SECTION( desc, "" )
#define THEN( desc ) SECTION( desc, "" )
inline bool itDoesThis(){ return true; }
STORY( storyName, "once upon a time" )
SCENARIO( storyName, "scenario name" )
{
GIVEN( "This stuff exists" )
{
// make stuff exist
WHEN( "I do this" )
{
// do this
THEN( "it should this this")
{
REQUIRE( itDoesThis() );
}
}
}
}

View File

@@ -1,14 +0,0 @@
//
// File.h
// CatchSelfTest
//
// Created by Phil Nash on 02/09/2012.
//
//
#ifndef __CatchSelfTest__File__
#define __CatchSelfTest__File__
#include <iostream>
#endif /* defined(__CatchSelfTest__File__) */