mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 08:48:30 +01:00
Added tests that adds a boolean to a hash table
This commit is contained in:
@@ -51,6 +51,21 @@ namespace JsonGeneratorTests
|
||||
jsonIs("{\"key\":null}");
|
||||
}
|
||||
|
||||
TEST_METHOD(OneTrue)
|
||||
{
|
||||
add("key", true);
|
||||
|
||||
jsonIs("{\"key\":true}");
|
||||
}
|
||||
|
||||
TEST_METHOD(OneFalse)
|
||||
{
|
||||
add("key", false);
|
||||
|
||||
jsonIs("{\"key\":false}");
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
|
||||
template<typename T>
|
||||
|
||||
Reference in New Issue
Block a user