You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
// ArduinoJson - https://arduinojson.org
|
|
|
|
// Copyright © 2014-2022, Benoit BLANCHON
|
|
|
|
// MIT License
|
|
|
|
|
|
|
|
#include <ArduinoJson/version.hpp>
|
|
|
|
#include <catch.hpp>
|
|
|
|
#include <sstream>
|
|
|
|
|
|
|
|
using Catch::Matchers::StartsWith;
|
|
|
|
|
|
|
|
TEST_CASE("ARDUINOJSON_VERSION") {
|
|
|
|
std::stringstream version;
|
|
|
|
|
|
|
|
version << ARDUINOJSON_VERSION_MAJOR << "." << ARDUINOJSON_VERSION_MINOR
|
|
|
|
<< "." << ARDUINOJSON_VERSION_REVISION;
|
|
|
|
|
|
|
|
REQUIRE_THAT(ARDUINOJSON_VERSION, StartsWith(version.str()));
|
|
|
|
}
|