mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 14:58:10 -05:00
Update catch2 version
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
#include <catch2/catch.hpp>
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
#include <catch2/generators/catch_generators.hpp>
|
||||
|
||||
#include "Parsing/Commands/Impl/CommandsLexer.h"
|
||||
#include "Parsing/Mock/MockParserLineStream.h"
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include <catch2/catch.hpp>
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
#include <catch2/generators/catch_generators.hpp>
|
||||
|
||||
#include "Utils/ClassUtils.h"
|
||||
#include "Parsing/Commands/Sequence/SequenceAction.h"
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include <catch2/catch.hpp>
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
#include <catch2/generators/catch_generators.hpp>
|
||||
|
||||
#include "Utils/ClassUtils.h"
|
||||
#include "Parsing/Commands/Sequence/SequenceArchitecture.h"
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include <catch2/catch.hpp>
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
#include <catch2/generators/catch_generators.hpp>
|
||||
|
||||
#include "Utils/ClassUtils.h"
|
||||
#include "Parsing/Commands/Sequence/SequenceGame.h"
|
||||
|
@ -1,8 +1,12 @@
|
||||
#include <catch2/catch.hpp>
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
#include <catch2/matchers/catch_matchers_floating_point.hpp>
|
||||
#include <catch2/generators/catch_generators.hpp>
|
||||
|
||||
#include "Parsing/Header/Impl/HeaderLexer.h"
|
||||
#include "Parsing/Mock/MockParserLineStream.h"
|
||||
|
||||
using namespace Catch::Matchers;
|
||||
|
||||
namespace test::parsing::header::impl::header_lexer
|
||||
{
|
||||
void ExpectCharacterToken(HeaderLexer& lexer, char c)
|
||||
@ -22,7 +26,8 @@ namespace test::parsing::header::impl::header_lexer
|
||||
void ExpectFloatingPointToken(HeaderLexer& lexer, double number)
|
||||
{
|
||||
REQUIRE(lexer.GetToken(0).m_type == HeaderParserValueType::FLOATING_POINT);
|
||||
REQUIRE(lexer.GetToken(0).FloatingPointValue() == Approx(number));
|
||||
const auto a = lexer.GetToken(0).FloatingPointValue();
|
||||
REQUIRE_THAT(lexer.GetToken(0).FloatingPointValue(), WithinRel(number));
|
||||
lexer.PopTokens(1);
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include <catch2/catch.hpp>
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
#include <catch2/generators/catch_generators.hpp>
|
||||
|
||||
#include "Parsing/Header/Sequence/SequenceNamespace.h"
|
||||
#include "Parsing/Mock/MockLexer.h"
|
||||
|
@ -1,5 +1,7 @@
|
||||
#include <catch2/catch.hpp>
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
#include <catch2/generators/catch_generators.hpp>
|
||||
|
||||
#include <algorithm>
|
||||
#include <sstream>
|
||||
|
||||
#include "Utils/ClassUtils.h"
|
||||
|
@ -1,2 +0,0 @@
|
||||
#define CATCH_CONFIG_MAIN
|
||||
#include <catch2/catch.hpp>
|
Reference in New Issue
Block a user