mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-02 21:35:40 +02:00
Added stub for BDD mappings
This commit is contained in:
@@ -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() );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -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__) */
|
Reference in New Issue
Block a user