Files
ArduinoJson/test/Misc/version.cpp

19 lines
457 B
C++
Raw Normal View History

// ArduinoJson - arduinojson.org
2019-02-15 13:31:46 +01:00
// Copyright Benoit Blanchon 2014-2019
// MIT License
#include <ArduinoJson/version.hpp>
#include <catch.hpp>
#include <sstream>
2018-06-07 10:47:00 +02:00
using Catch::Matchers::StartsWith;
TEST_CASE("ARDUINOJSON_VERSION") {
std::stringstream version;
version << ARDUINOJSON_VERSION_MAJOR << "." << ARDUINOJSON_VERSION_MINOR
<< "." << ARDUINOJSON_VERSION_REVISION;
2018-06-07 10:47:00 +02:00
REQUIRE_THAT(ARDUINOJSON_VERSION, StartsWith(version.str()));
}