first commit
This commit is contained in:
commit
e6a42e28e9
4355 changed files with 4626605 additions and 0 deletions
18
libraries/ArduinoJson/extras/tests/Misc/version.cpp
Normal file
18
libraries/ArduinoJson/extras/tests/Misc/version.cpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
// ArduinoJson - https://arduinojson.org
|
||||
// Copyright © 2014-2025, 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()));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue