version.cpp 457 B

123456789101112131415161718
  1. // ArduinoJson - arduinojson.org
  2. // Copyright Benoit Blanchon 2014-2019
  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. }