mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Fix call of overloaded 'String(const char*, int)' is ambiguous
				
					
				
			This commit is contained in:
		| @@ -13,7 +13,7 @@ TEST_CASE("JsonString") { | ||||
|  | ||||
|     CHECK(s.isNull() == true); | ||||
|     CHECK(s.c_str() == 0); | ||||
|     CHECK(s.isStatic() == true); | ||||
|     CHECK(s.isLinked() == true); | ||||
|   } | ||||
|  | ||||
|   SECTION("Compare null with boolean") { | ||||
| @@ -82,4 +82,11 @@ TEST_CASE("JsonString") { | ||||
|     ss << JsonString("hello world!"); | ||||
|     CHECK(ss.str() == "hello world!"); | ||||
|   } | ||||
|  | ||||
|   SECTION("Construct with a size") { | ||||
|     JsonString s("hello world", 5); | ||||
|  | ||||
|     CHECK(s.size() == 5); | ||||
|     CHECK(s.isLinked() == true); | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user