mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			465 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			465 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| // ArduinoJson - https://arduinojson.org
 | |
| // Copyright Benoit Blanchon 2014-2021
 | |
| // 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()));
 | |
| }
 |