2021-03-29 17:14:01 +02:00
|
|
|
// ArduinoJson - https://arduinojson.org
|
2021-01-25 09:14:15 +01:00
|
|
|
// Copyright Benoit Blanchon 2014-2021
|
2018-06-01 09:16:45 +02:00
|
|
|
// MIT License
|
|
|
|
|
|
|
|
#include <ArduinoJson/version.hpp>
|
|
|
|
#include <catch.hpp>
|
|
|
|
#include <sstream>
|
|
|
|
|
2018-06-07 10:47:00 +02:00
|
|
|
using Catch::Matchers::StartsWith;
|
|
|
|
|
2018-06-01 09:16:45 +02:00
|
|
|
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()));
|
2018-06-01 09:16:45 +02:00
|
|
|
}
|