version.cpp 469 B

123456789101112131415161718
  1. // ArduinoJson - https://arduinojson.org
  2. // Copyright © 2014-2022, Benoit BLANCHON
  3. // MIT License
  4. #include <ArduinoJson/version.hpp>
  5. #include <catch.hpp>
  6. #include <sstream>
  7. using Catch::Matchers::StartsWith;
  8. TEST_CASE("ARDUINOJSON_VERSION") {
  9. std::stringstream version;
  10. version << ARDUINOJSON_VERSION_MAJOR << "." << ARDUINOJSON_VERSION_MINOR
  11. << "." << ARDUINOJSON_VERSION_REVISION;
  12. REQUIRE_THAT(ARDUINOJSON_VERSION, StartsWith(version.str()));
  13. }