mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-20 22:12:31 +02:00
Merge branch 'master' into 6.x
This commit is contained in:
@ -8,6 +8,7 @@ add_executable(MiscTests
|
||||
StringTraits.cpp
|
||||
TypeTraits.cpp
|
||||
unsigned_char.cpp
|
||||
version.cpp
|
||||
vla.cpp
|
||||
)
|
||||
|
||||
|
16
test/Misc/version.cpp
Normal file
16
test/Misc/version.cpp
Normal file
@ -0,0 +1,16 @@
|
||||
// ArduinoJson - arduinojson.org
|
||||
// Copyright Benoit Blanchon 2014-2018
|
||||
// MIT License
|
||||
|
||||
#include <ArduinoJson/version.hpp>
|
||||
#include <catch.hpp>
|
||||
#include <sstream>
|
||||
|
||||
TEST_CASE("ARDUINOJSON_VERSION") {
|
||||
std::stringstream version;
|
||||
|
||||
version << ARDUINOJSON_VERSION_MAJOR << "." << ARDUINOJSON_VERSION_MINOR
|
||||
<< "." << ARDUINOJSON_VERSION_REVISION;
|
||||
|
||||
REQUIRE(version.str() == ARDUINOJSON_VERSION);
|
||||
}
|
Reference in New Issue
Block a user